Import .reg files with C# (or c++)? - General Questions and Answers

I'm working on an app, it will probably be up on here within the week. One thing the app will need to be able to do is import .reg files to the registry. I've already done a great deal of searching (both xda and google) without any real luck.
Are there any solutions which don't involve writing a .reg parser? C# is preferred but I'm fine with using interop to win32 calls. Perhaps I missed it, but if there's a utility that's built into windows mobile that can be called, that is perfectly acceptable as long as it reliably exists in windows mobile 6 or higher. I'd also consider a utility that can be bundled if it's tiny and liberally licensed (my app will be freeware).
It would be great if there was also something that did the exports as well. I don't need this today, but I'm pretty sure I will in the very near future.
If lacking any of these options, please point me in the direction of some good .reg parser code if anybody knows of something that's particularly worth using.

http://www.eggheadcafe.com/software/aspnet/30798599/using-reg-file-to-import.aspx
found by
http://www.google.dk/search?q=c#+import+.reg+ce&hl=da&start=10&sa=N

Rudegar said:
http://www.eggheadcafe.com/software/aspnet/30798599/using-reg-file-to-import.aspx
found by
http://www.google.dk/search?q=c#+import+.reg+ce&hl=da&start=10&sa=N
Click to expand...
Click to collapse
I hope this doesn't sound rude, but I've seen that and several other similar postings (as I said, I did some searching). This one in particular was from a year and a half ago and comes just shortly after the first winmo 6.0 phone would have hit shelves. I was being optimistic that there may have been some developments in the field since then. The goal, of course, is to avoid reinventing the wheel.
With a couple more hours of digging around I still haven't found any results, so I'll probably write a parser and post it as well.

Related

Help finding file search application

I would be very happy this xmas if I can find an application like I describe below.
My request is simple, so simple I cannot find it anywhere! I've searched and searched and wasted hours online trying to find it to no avail.
I would like to find a file explorer application with an interface like the Search Today plugin that will search locally in the main memory and sd card but not only web pages; an application like the type-to-search function found in Initiate for Palm devices.
It can be either a plugin or a button-assignable application (even better!).
I want to be able to start typing a word in the Today screen (or anywhere else by pressing a button) and the application will look through EVERYTHING in the phone and show all the instances of that word/phase narrowing it down as I type, and once I find what I am after and click on it, if it is an application it will open it, if it is a file it will open an application by file association, if it is a phone number it will open the phone application, if it is a video file it will play it, and so on.
I'm not after skins or pretty intefaces that flip and turn or anything of the sort, I don't need any of that because I want to use my phone efficiently, because for me it is a tool not a show-off thingy to beat the iPhone. I want an efficient, plain and simple "search and you shall find" kind of application, with a small footprint, preferably.
Cubes are very nice to look at and some people spent heaps of time honing their skills in developing it but at times they bore me, sorry.
Is there anything available that will do what I need? Please?
I'm searching for the same thing! I know one but its exclusive to sierra voq smartphone: it's called myvoq
I sort of knew that it was not going to be easy to find but I am still hopeful that the great brains out there would have come up with something.
wovens said:
I sort of knew that it was not going to be easy to find but I am still hopeful that the great brains out there would have come up with something.
Click to expand...
Click to collapse
I have a wm2k3 rom from the Sierra VOQ which has the myVOQ in it... But I can't dump it... I get some "can't load compressor dll" when dumping it...
philocritus said:
I have a wm2k3 rom from the Sierra VOQ which has the myVOQ in it... But I can't dump it... I get some "can't load compressor dll" when dumping it...
Click to expand...
Click to collapse
Thank you but I think even if you managed to dump your ROM or copy the dll it probably would not have worked because I think the phone is a smartphone, i.e., no touch screen, am I right? I believe software made for smartphones cannot be made to work on touchscreen-phones.
But thanks for trying.
Regards,
w
I discovered the correct terminology for what I am after: "Predictive on-device Search" - see article here. But still no concrete results.
wovens said:
I discovered the correct terminology for what I am after: "Predictive on-device Search" - see article here. But still no concrete results.
Click to expand...
Click to collapse
I've found a few but only for s60 symbian phones...
not one for windows mobile.

GPS software with Speed Logging and Replay

I'm trying to find a gps app to run on my Raphael that is capable of recording/logging a trip including timestamps.
I want to be able to replay the trip precisely, preferably on the phone, but if absolutely necessary I'd be willing to replay it on a laptop computer (I have a macbook pro and am running windows vista in a virtual machine) and logically I can replay it from a website as well.
Specifically, I want to be able to replay this in a courtroom in front of a judge, but I don't need to make a grand show of it (thus the reason I prefer replaying from the phone rather than carrying in a laptop).
Any advice would be great. I've considered writing my own app for this, but I really need to be able to replay the trip with graphical maps visible, which makes it more difficult to do. I've got TomTom installed already (which doesn't have this feature built-in as far as I'm aware).
tracking
I have not found a software which does what you are expecting, so I have acquired a TRACKSTICK PRO which does all what you require including tracing the trip on google earth!!
Hope this help
Chris from snowy Chamonix (France)
A completely new device, especially one without it's own ability to navigate would just add to an already excessive bunch of cables and take up a valuable power plug.
I can't figure out where or how to purchase one. The "get it now" button just takes you to a form to submit for them to call you back...This and the fact that it claims to be a "low-cost" solution makes me think that they aren't very interested in dealing with single unit sales.
Thanks for the advice, it's just not what I had in mind.
TrackMe might be what you are looking for.
bubble said:
TrackMe might be what you are looking for.
Click to expand...
Click to collapse
This looks pretty good I think. At least it's great for tracking and exporting, at least a little easier to work with than GpsGate which appears to only do NMEA sentences and a few file formats that nothing else reads. But this still leaves me trying to find the best way to present it.
I'd still like to be able to do sort of a playback of the trip rather than just data points on a map...and I'm still holding out hope for demonstrating the trip from my phone, but I'm starting to realize that none of the major GPS nav apps seem to have this feature, or at least I haven't found proof that they do. I think iGo might have a record/playback feature, but i haven't been able to verify.

The Price of getting mobile versions written

Hello,
Bit of background...
I built and run taxiroute which is a taxi fare calculator for the UK.
It's been up and running as a website only since 2008 and will hit £13m of enquiries this year.
The problem is that it only currently exists as a website and I think it would get much more traffic if I could get mobile versions of it launched.
To enable the mobile apps to plug into my system I have written a fully functional SOAP/XML Webservice which contains all the business logic for the system. This means that the mobile apps will have very little code in them as all they have to do is call my webservice.
So, with my API under my arm I started to approach a couple of mobile development companies with a view of getting the apps built.
I managed to find a development company in London who appear pretty unique as they have custom software which enables them to write the app once and port it across to all the other platforms. Which sounds perfect.
My problem is getting my head around the price they are asking for the development of the apps. They are asking for about £18k.
The work I see them having to do is the following:
1. Develop the design of the screens and graphics.
2. Develop the screens to talk to my API.
3. Get the application into the app stores for each platform.
To me, it appears a little excessive and I was looking for opinions really?
I love the idea of getting the one company to do all the development but I cannot seem to work out how they think it's going to be 36 days work, guessing that they charge £500 a day for developers etc...
Any thoughts?
Thanks
Trev
Looks like you have already done the main graft getting the webservice to work.
In .NET CF use an XmlTextReader class to go get it.
Substitute "here" and "there" with the real values your service expects.
Code:
XmlTextReader xtr = new XmlTextReader("http://www.yoursite.com/yourservice.xml?from=here&to=there");
xtr.Read();
// Until you get to the return value line(s) when xtr.Name will contain the result.
// Do with it what you will.........
xtr.Close();
stephj said:
Looks like you have already done the main graft getting the webservice to work.
Click to expand...
Click to collapse
hopefully so. even written my own windows mobile version to double check functionality. looks crap but works perfect.
£18k. wish i had it.
trev

[Q] any way to view Sketchup (google) files on Android dev?

I already STFA and did not find what I was looking for. I was wondering if there is an application that will allow viewing of existing Google Sketchup files, editing/creating files - no - not so much, think that would be best done on a full blown desktop, One earlier post was asking about running a fully functional Sketchup, and I tend to agree that it would be too much of a tax on the processor and memory to be feasible for a mobile device. I also found the SketchBook program from AutoDesk which is designed for mobile devices but from what it says it is more like Paint in Microsoft Os's not a CAD type program.
Anybody know if there is anything like that available out there to be able to view Google Sketchup files? Thanks in advance for any information on the subject.
Sorry to wake up an old topic (very old) but I too am looking for such an app.....being a kitchen builder in my spare time I was asked a few times if I had any models on hand to show. And since I do all my sketches in Sketchup, well you guessed it....I can't show them on my tab....
Would be kinda cool to show potential customers how their kitchen might look like if I could just drop existing cabinets in place etc...
If you've already found something would you mind sharing with me? Very much appreciated...

Porting Chromium to Windows RT

So, I've been at this for about 48 hours now (not continuously, but closer than you might think) and I figured I should take a break from modifying project files and puzzling over alignment issues to discuss the project, share some of the problems I've been having and ask if anybody can help, and so on.
The general idea is "Chromium build for Windows (on x86/x64) and build on ARM (for Linux), so there must be a way to build it for Windows on ARM". For the most part, that even looks like it's true. Probably at least 80% of 654 Visual Studio projects (no, that's not a joke) either build just fine with only minor amounts of work, or are things that we don't actually need (I'll try building the test suites... once everything else builds!!)
Areas that have given me problems (caution: some chance of brief rants ahead):
v8. Less than you might think, though. Setting the flags for Arm seems to have been enough.
Sandbox. There's a fair bit of thunking coded in assembly going on in the sandbox for x86. Not sure what's up with it (I don't know exactly how the Chromium sandbox works) but it'll have to come out or be replaced. The Linux (including ARM) sandbox seems to be SELinux-based, which doesn't help at all.
Native Client (NaCl). I think all the assembly is in test code, though, so I may just boldly #ifdef if all away.
libjpg-turbo (libjpg). Piles of carefully optimized assembly... for x86 and x64. There is a set of ARM assembly (for Linux) that Visual Studio won't compile, but something else might... or I may tweak until it works. Of course, I could also just accept the speed hit and use the version of libjpg implemented in nice, portable C.
Anything where the developers tried to use some SSE to speed things up. I may be able to replace it with NEON code, or I may just remove it and hope **** doesn't break. We'll see.
Inline assembly in general. Even when it's ARM assembly, Visual Studio / CL.exe don't want anything to do with it (__asm is apparently now an invalid keyword). I suspect I'll have to just pull the assembly out into stand-alone functions in their own files, then compile them to object files and link them back in later. If I can figure out the best way to do this (for example, I'll want to inline the asm functions) then it shouldn't impact performance. Seriously though, I kind of hate inline assembly. I can read assembly just fine, but I'm usually staring at it in a debugger or disassembly tool, not in the middle of source code I'm trying to build...
Everywhere that the current state of the CPU is cared about (exception and crash handlers, in particular) because the CONTEXT structure is, of course, CPU-specific. They're pretty easy to get past, though.
Low-level functions, like MemoryBarrier. Fortunately, it's implemented in ntdll.h... but as a macro, which breaks at least half the places it's referenced. Solution: where it breaks things, undefine the macro and just have it be an inline function that does what the macro did.
Running out of memory. Not even joking... well, OK, a little bit. I've got 32GB; I won't actually run out. Both Visual Studio and cl.exe do at times, though!. Task Manager says VS is currently using 1,928 MB, and before I restarted it, it broke 2.5GB private working set. Pretty good for a program that for some reason is still 32-bit...
Goddamn compiler flags. Seriously, every single project (I mentioned there are over 600, right?) has its LIBPATHs hardcoded to point at x86. Several projects have /D:_X86_ or similar (that's supposed to be set by the build tools, not the user, you idiots...) which plays merry hell with the #ifdef guards. Everything has /SAFESEH specified, not in the actual property table where the IDE could have removed it (unneeded and invlaid on ARM) but in the "extra stuff we'll pass on the build command line" field, which means every single .EXE/.DLL project must be modified or the linker will fail.
My current biggest goal is the JPG library; nobody wants to use a browser without it. After that, I'll tackle the sandbox, leaving NaCl for last... well, last before whatever else crops up.
Anyhow, thoughts/comments/advice are welcome... in the mean time, I'm going to go eat something (for the first time in ~22 hours) and then get some sleep.
Kudos for having the patience to look though this monster.
It's my understanding that NaCl is still a pretty niche thing at the moment. Is it possible to easily either disable it or completely hack it out, or do other more critical parts of Chromium now depend on it?
I don't think anything truly depends on it. I'll look in the VS dependency hierarchy and see how many things list it, and how awful it would be to remove them.. after I get the other stuff working. I may pass on the sandbox as well, if possible; it makes the security guy in me cringe something awful, but as they say, shipping is a feature..
great
Please make that happen !
Working on it! I've gotten over half of the projects to build and link, but some other stuff is adamantly refusing to work. I'm beginning to suspect I'll need to work from the other direction - rather than starting at the bottom and building all the dependencies, then combining them into browser components, and then eventually combining all the components into a complete piece of software, I may have to work from the top, removing components until the whole thing builds (at which point it will likely be useless, or all-but) and then seeing what I can add back in. I thought it would be faster to just assume everything can be made to work and only exclude something if it proved intractable, but at this point I've got a ton of very small components and almost no ability to combine them.
It would also help if VS was better at managing such truly immense tasks. For example, I have no simple graph of what all is and is not building, so I'm being forced to manually map that onto the VS dependency tree and see what is blocking a given component from building successfully, and how much is dependent upon it, one erroring project at a time (and there are a *lot* of erroring projects - my last attempt to build any substantial part of the system saw 50 of 400 projects fail).
GoodDayToDie said:
Working on it! I've gotten over half of the projects to build and link, but some other stuff is adamantly refusing to work. I'm beginning to suspect I'll need to work from the other direction - rather than starting at the bottom and building all the dependencies, then combining them into browser components, and then eventually combining all the components into a complete piece of software, I may have to work from the top, removing components until the whole thing builds (at which point it will likely be useless, or all-but) and then seeing what I can add back in. I thought it would be faster to just assume everything can be made to work and only exclude something if it proved intractable, but at this point I've got a ton of very small components and almost no ability to combine them.
It would also help if VS was better at managing such truly immense tasks. For example, I have no simple graph of what all is and is not building, so I'm being forced to manually map that onto the VS dependency tree and see what is blocking a given component from building successfully, and how much is dependent upon it, one erroring project at a time (and there are a *lot* of erroring projects - my last attempt to build any substantial part of the system saw 50 of 400 projects fail).
Click to expand...
Click to collapse
I thinkt tht is a mutch better taktic and mutch less frustrading.
I would love to see just a minimal version of it. After that all the small componens can follow.
50 of 400 is pretty good i think. Better then i expected
Bear in mind that the entire thing is 650 projects. If 50 fail at that level, many of the higher-level ones (dependent upon the lower-level) will fail too. I'll see what I can do. I may or may not be able to get v8 actually working (without it, the JS speed will be very bad, think IE8 at best) and I may have to fall back to the legacy libjpeg (which will cut JPEG render speeds by at least a factor of 2). Skia (2D drawing library used by Chrome) has a bunch of assembly optimizations that I need to get it to use the Arm version of instead. There's a couple of total hacks with the library files I've had to pull, which may or may not result in a working final build. We'll see.
GoodDayToDie said:
Bear in mind that the entire thing is 650 projects. If 50 fail at that level, many of the higher-level ones (dependent upon the lower-level) will fail too. I'll see what I can do. I may or may not be able to get v8 actually working (without it, the JS speed will be very bad, think IE8 at best) and I may have to fall back to the legacy libjpeg (which will cut JPEG render speeds by at least a factor of 2). Skia (2D drawing library used by Chrome) has a bunch of assembly optimizations that I need to get it to use the Arm version of instead. There's a couple of total hacks with the library files I've had to pull, which may or may not result in a working final build. We'll see.
Click to expand...
Click to collapse
the v8 engine ( used in nodejs ) has been ported to ARM :
I still can't link : htt p://ww w.it-wars.com/article305/compiler-node-js-pour-arm-v5
perhaps it will help you
Edit : oups, I just see that another great user of this forum made the port of nodejs to RT
Yep... but they did it without v8. That's not an encouraging result, but I feel like I'm so close...
Is there a GitHub repo so we can help or track the progress of the project ?
Sorry, not at present. There probably should be. The sheer size of the codebase is incredible (about 2.4GB) and having some way to share it practically would be good.
Also, I suspect this would go a lot faster if I don't have to repeat the work of others. I know that there's a working Webkit DLL out there, for example (though with several features, including the V8 JS engine, missing) and if I could get my hands on that it would drastically reduce the number of additional components I need to build. Currently I'm working on the sandbux, but expect that I will need to rip the whole thing out and basically have the browser run as though it was always passed the --no-sandbox parameter, at least for the first build. Too damn much assembly.
http://www.engadget.com/2013/01/22/google-chrome-native-client-arm-support/
This wouldn't have any impact on this project, would it?
Sent from my SCH-I535 using xda-developers app, complete with annoying signatures.
It probably means that NaCl on Windows RT will be possible in the future. At present, I'm cutting it out of the build - too much x86-specific stuff there to port it over myself, and it owuldn't be able to run x86-compiled NaCl code anyhow.
You might have bit off more than you could chew. It'd better if you put your current progress under version control on some public site so that other people may be able to help you.
It's a big and complex project. You are taking a lot of time, and understandably so. But just open up to other people and you could get this done faster.
Yeah, this is probably true. My life also got unexpectedly *busy* in the last week; a couple weeks ago I had many times as much free time as I do now, and so porting has slowed down.
My upload speed would take ages (literally probably at least a day of solid activity; it's embarassingly slow) to push the full source anywhere, but I may make the effort anyhow. I'll have to post it somewhere for GPL compliance in any case...
You may upload only the diff files, they'll probably be smaller then the whole distribution.
Not to pour cold water on you however, IE10 is already faster than the latest Chrome build in Windows Phone, Windows 8.
I don't see the point of this.
I have personally jumped from IE8 > FF > Chrome and finally back to IE10 over the years depends on its usability, smoothness, speed, etc
Speed isn't the only reason to use a browser. I actually prefer IE myself, but there are some things that other browsers do better than it (in the case of Chrome, parts of HTML5, the syncing across Google services, etc.) Also, Chrome gets updated far more often than IE; IE9 was equal with Chrome on speed at its release, and was far behind by the time IE10 came out.
The reason for this project, though, is a mixture of interest in what it takes, and a desire to benefit the community. Microsoft has deeped that only software which they have blessed may run on the Windows RT desktop. I disagree, and have chosen (among several other things) to port a web browser because I feel that it's important for users to have choice.
LastBattle said:
Not to pour cold water on you however, IE10 is already faster than the latest Chrome build in Windows Phone, Windows 8.
I don't see the point of this.
Click to expand...
Click to collapse
Some websites do not get along with the trident rendering engine. Some webdevs are so "Oh f*** IE I don't care" and block access to features just because it is IE. I have experienced this first hand on IE10 on my surface where it tells me to come back when I have a decent browser, only to not have the choice to do that.
This really isn't the webdevs fault either, for years IE was the scum of the internet, only recently has IE caught up to the rest of the browsers (and in my opinion exceeded some) but the years of IE being bad have left a lot of disjointed webdevs who won't even consider giving the latest IE a chance.

Categories

Resources