|
mcnam wrote: ...but it did not do right.
Ok, and?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I'm working on a windows ce development project, and on my compact flash card containing the distribution is "the registry file". I want to be able to edit, off-line, this file. According to Windows CE doc, the format is the same as Windows XP, etc.
When I attempt to open the file on my desktop with regedit, it asks me "Would you like to merge this file?" Noooo, I don't want to do *that*, I want to just see what is in it.
Is there a way to open a registry file on disk - I don't want the live version.
Before you say windows ce is windows ce.... imagine if I have an OS disk that won't boot. I remove the disk from one machine and mount the disk in another workstation. Now I can access the registry file on the off-line disk. But can I?
I see nothing in msdn about opening a static registry file.
Ideas?
C. Gilley
Will program for food...
My son's PDA is an M249 SAW.
|
|
|
|
|
Is it a .reg file, or the actual registry (ntuser.dat)?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
In my case, it's a .reg file.
C. Gilley
Will program for food...
My son's PDA is an M249 SAW.
|
|
|
|
|
No why not just open it with Notepad (or equivalent)?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Well, most of it is gobble-dee-gook.. mix of binary and ascii. Dangerous to edit such a beast in notepad. Or, am I missing your point entirely?
C. Gilley
Will program for food...
My son's PDA is an M249 SAW.
|
|
|
|
|
I've never touched Windows CE so its .reg files may be different than what I've worked with on desktops. In either case, the actual registry will indeed be gobble-dee-gook. What does the very beginning of your .reg file look like?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I think the default action for the registry is to "add" it's content to the existing registry.
you can open the file in a text editor, it's a text file.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I admit I have not looked at the registry for my xp-pro system. However, the ce registry is most definitely binary, but you can see some text.
C. Gilley
Will program for food...
My son's PDA is an M249 SAW.
|
|
|
|
|
Can u tell me from were to start learning WinCE
I am a VS.6 VC++ programer
Do i start learning .NET ??
or
shall i study EVC++??
Do u know any online resource??
Thank you in advance
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Vikas,
My application is almost all mfc with bits and pieces of Win32 and ActiveX controls. With the exception of some very specific CE issues, WinCE is pretty much Windows. Some things you need to keep in mind are the user interface aspects of your target device and some os issues (less memory, etc.). Mainly common sense.
If you start with CE 4.2+, then you have the option of .net development.
chg
C. Gilley
Will program for food...
My son's PDA is an M249 SAW.
|
|
|
|
|
I have a program that uses Microsoft's WinSNMP to send traps to a configured receiver when certain error conditions occur. This program was pretty much cobbled together using sealing wax and duct tape, as I know very little about SNMP in practice, but it works well.
Now someone told me that they would prefer to use SNMP informs instead of traps because the latter, based on UDP, have no assured delivery, whereas the former have an aknowledgement/retry/timeout mechanism to "guarantee" delivery.
So I googled on SNMP inform till the cows came home and found a few places that describe what SNMP informs are in a general sense but none that shows exactly how to accomplish it, particularly with WinSNMP. My impression is as described below, and my question to anyone who knows better is whether my impression is correct. If not, can you please point me to how I can accomplish this with WinSNMP?
My impression is that SNMP informs basically consist of the sender sending the trap just as it always did, but saving a copy of the message sent until it receives the acknowledgement, or until the sender, independently of WinSNMP, determines that it time to resend. It appears to me that the acknowledgement is not something handled in WinSNMP at all, but is just any kind of message that the sender of the trap and the receiver mutually agree on that the receiver sends back to the sender to tell him that the trap was received. In other words, it appears to me that SNMP inform is not something supported by WinSNMP as distinct from a trap, but is nothing more than a mutually agreed upon conversation between trap sender and receiver.
Is this true?
Thanks for any information.
|
|
|
|
|
BambooMoon wrote: Now someone told me that they would prefer to use SNMP informs instead of traps because the latter, based on UDP, have no assured delivery, whereas the former have an aknowledgement/retry/timeout mechanism to "guarantee" delivery.
Instead of UDP (unreliable delivery), I think you'll want to use TCP (reliable delivery).
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
SNMP is built on top of UDP, not TCP. I'm not looking for an alternative to SNMP. I'm looking for information on how to use SNMP informs. Thanks anyway.
|
|
|
|
|
BambooMoon wrote: SNMP is built on top of UDP, not TCP. I'm not looking for an alternative to SNMP.
Fair enough.
BambooMoon wrote: I'm looking for information on how to use SNMP informs.
I've not ever come across that term. Does this help?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Thanks for the web site, but unfortunately it uses some product other than Microsoft's WinSNMP. It is interesting in that it claims that to use informs, you just set a flag in the outgoing trap that says it is an inform (and then the document glosses over what it means by handling the acknowledgement). But it doesn't say who decides what goes in the acknowledgement, how the sender of the trap knows that a given acknowledgement is for a certain trap (since it may have sent hundreds of traps all awaiting acknowledgement) or anything else.
Thanks, but I need WinSNMP info.
|
|
|
|
|
I develop a client whith subversion API and Svncpp, but when use the object:
svn::Path
I get this error message :
libneon.lib(ne_dates.obj) : error LNK2001: unresolved external symbol __ftol2
I don't find the origin of error, help please
|
|
|
|
|
|
|
I have to create a simple appliction
that will have to send & receive data
from the USB port .
Can anyone help ??
Thank you
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
I think you can use the directory routines "_getdrives();" to visit the drives and its subfolder and a basic copy function to write or read data
|
|
|
|
|
Thank you
Its like this that we have created a small
Serial to USB converter ,
I just want to send some data & receive some
data from the USB port .
Thats it....
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hi Folks,
I got a Wrapper Dll around a native C++ static library. In .NET 1.1 this
worked fine. When moving to .NET 2.0 I get a couple of unresolved externals /
linker errors:
Error 16 error LNK2028: unresolved token (0A000007) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall std::logic_error::~logic_error(void)"
(??1logic_error@std@@$$FUAE@XZ) Parameter.obj
Error 17 error LNK2028: unresolved token (0A000007) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
__thiscall std::bad_alloc::bad_alloc(char const *)"
(??0bad_alloc@std@@$$FQAE@PBD@Z) Imagic.obj
Error 18 error LNK2028: unresolved token (0A000008) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall std::logic_error::~logic_error(void)"
(??1logic_error@std@@$$FUAE@XZ) Align2D.obj
Error 19 error LNK2028: unresolved token (0A000347) "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::logic_error::`vector deleting destructor'(unsigned int)"
(??_Elogic_error@std@@$$FUAEPAXI@Z) Parameter.obj
Error 20 error LNK2028: unresolved token (0A0003D3) "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::bad_alloc::`vector deleting destructor'(unsigned int)"
(??_Ebad_alloc@std@@$$FUAEPAXI@Z) Imagic.obj
Error 21 error LNK2028: unresolved token (0A000358) "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::logic_error::`vector deleting destructor'(unsigned int)"
(??_Elogic_error@std@@$$FUAEPAXI@Z) Align2D.obj
Error 22 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Align2D.obj
Error 23 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) AssemblyInfo.obj
Error 24 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Imagic.obj
Error 25 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Parameter.obj
Error 26 error LNK2019: unresolved external symbol "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall std::logic_error::~logic_error(void)"
(??1logic_error@std@@$$FUAE@XZ) Align2D.obj
Error 27 error LNK2001: unresolved external symbol "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) Imagic.obj
Error 28 error LNK2001: unresolved external symbol "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) Parameter.obj
Error 29 error LNK2019: unresolved external symbol "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) referenced in function "public: virtual void
* __thiscall std::logic_error::`vector deleting destructor'(unsigned int)"
(??_Elogic_error@std@@$$FUAEPAXI@Z) Align2D.obj
Error 30 error LNK2001: unresolved external symbol "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) Imagic.obj
Error 31 error LNK2001: unresolved external symbol "void __clrcall `eh
vector destructor iterator'(void *,unsigned int,int,void (__clrcall*)(void
*))" (??_M@$$FYMXPAXIHP6MX0@Z@Z) Parameter.obj
Error 32 fatal error LNK1120: 9 unresolved externals Debug\empDll.dll
In my .NET 1.1 Project I had to make the following Linker Settings to build
the DLL:
1.) Additional Dependencies: mscoree.lib msvcrt.lib (or msvcrtd.lib for
debug version) mystaticlib.lib
2.) Ignore Specific Library: nochkclr.obj
3.) Force Symbol Reference: __DllMainCRTStartup@12
In my Wrapper Classes I had to add the following:
#using <mscorlib.dll>
using namespace System;
using namespace System::Runtime::InteropServices;
This does not work any longer with the new Visual Studio and the new .NET
Framework.
The only article that I was able to find on this subject:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/TransGuide.asp
Doesn´t mention Linker settings at all.
Could anybody please help me or tell me where to go for further reading?
Thanks in Advance for your efforts.
Chucker
|
|
|
|
|
Did you try adding msvcmrt.lib to the Additional Dependencies section?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Now I tried it and it resolved the unresolved externals! Thanks for this hint!
Unfortunately this did not solve the whole problem. Now I get the following BadImageFormatException:
System.BadImageFormatException was unhandled
Message="Could not load file or assembly 'empDll, Version=1.6.0.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format."
Source="empDllTest"
FileName="empDll, Version=1.6.0.1, Culture=neutral, PublicKeyToken=null"
FusionLog="=== Pre-bind state information ===\r\nLOG: User = MPG-BPC\\mschmei\r\nLOG: DisplayName = empDll, Version=1.6.0.1, Culture=neutral, PublicKeyToken=null\n (Fully-specified)\r\nLOG: Appbase = file:///D:/empRemoting2/Release/\r\nLOG: Initial PrivatePath = NULL\r\nCalling assembly : empDllTest, Version=1.0.2134.28533, Culture=neutral, PublicKeyToken=null.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: No application configuration file found.\r\nLOG: Using machine configuration file from C:\\WINDOWS\\Microsoft.NET\\Framework64\\v2.0.50727\\config\\machine.config.\r\nLOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).\r\nLOG: Attempting download of new URL file:///D:/empRemoting2/Release/empDll.DLL.\r\nERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.\r\n"
StackTrace:
at empDllTest.DllTester.Main(String[] args)
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
|
|
|
|
|