|
of course that is possible !!
how do you think OS installer do ?
|
|
|
|
|
man, that's a big task you're asking about...
you may need to write a bootstrap from scratch !!
but as i don't know more about your project (target plateform, Proc SC, Dev IDE)...
|
|
|
|
|
Yeah,,That is what i want.How i can write bootstrap.Development tool and etc.. are not matter.Tell me is there any way that you know?
M.Sendilkumar
|
|
|
|
|
you have to peel your microprocessor's documentation and write the assembler code to what you need to do...
i cannot help you on this, as it is a very specific task.
|
|
|
|
|
Does anyone know where I can get information on writing a library (making a DLL of my own) for Parallel I/O Communication in C/C++?
Thanks
|
|
|
|
|
|
When I move the mouse on the menu bar.For example ,the Help button ,how can I get the text"Help" of the button in MFC?
|
|
|
|
|
Some helpful API are
FindWindow
GetWindowText
GetClassName
GetWindowLong > GWL_STYLE
|
|
|
|
|
|
Hey,friend.when I call the member func of the class exported from dll,like
MyClass.DoModal();
Dialog appears but when i click the "ok" button,the program abort and give out error message
"The Instruction at 'ox7800fa97' referenced memory at 'ox000007d6'. The memory could not be 'read'.
But,click "Cacel" button, It returns to main program,could you tell me what's wrong with my code?Thanks.
Lee
|
|
|
|
|
Hi all, I'd like to know how to access virtual key code values for keys such as @. and *. in C.
A code fragment I've written is as follows
LRESULT CALLBACK KeybProc( int nCode,WPARAM keyvalue, LPARAM lParam)
{
if (nCode != HC_NOREMOVE)
{
if (lParam<0)
{
if(keyvalue == VK_BACK)
{
char szBkKey[] = "<bkspkey>";
fileout<<szbkkey;
}
="" if(keyvalue="=" vk_return)
="" {
="" char="" szretkey[]="<RETURNKEY>" ;
="" fileout<<szretkey;
="" if="" (((keyvalue="">=0x41)&&(keyvalue<=0x5A))||(keyvalue==VK_SPACE))
{
etc....
}
}
}
}
This fragment stores values for values A..Z, a..z, 0..9 but doesn't record much else. Your help would be most appreciated.
ES
E Scott
-- modified at 21:43 Tuesday 4th April, 2006
|
|
|
|
|
I'm not sure I quite understand your question, but it sounds like you want to know how to find out the VK code for a given key. If so here is a little cheat. Add an accelerator into your resource file, Each time you add a new row into the accelerator file, there is a button "Next Key Typed", press it and hit the key, it will show you the VK code.
|
|
|
|
|
I want to allow networked PCs access to my server application. It has various parts and I want to tell the clients PCs where the address of the parts sit (a network address of the server folders). I can do it using a small install program run on each PC individually that inserts the server address of the files in the client PC registry but, is there a elegant way of letting the client PC use a remote program and access the server registry or the files local to the server.
Basically, from the client PC, if I run a program on the server can I retrieve data from the server registry rather than the local client registry.
Any thoughts?
Cheers
u6ik
|
|
|
|
|
You can connect to a regirstry in a remote machine, provided you have got the proper acccess rights.
Check out RegConnectRegistry()
|
|
|
|
|
Perfect! Many thanks
u6ik
|
|
|
|
|
I’m trying too passing a window handle from my application to an Interface
Software. The software will then send messages to my application. But it seems like no messages are sent at all. Its really strange though when I create another dialog (config window for my first window) in the first dialogs OnInitDialog(); function where I’m calling the Interface function it works. And then when I remove the code for the config dialog no message is sent.
Kind of hard to explain in words, here is the code that works:
:BOOL ClightswitchDlg::OnInitDialog()<br />
{<br />
int retval;<br />
CDialog::OnInitDialog();<br />
<br />
<br />
hZigBee = new CZigBeeIf();
<br />
retval = hZigBee->ZBIFConnect( m_hWnd );
<br />
<br />
CConfigureDlg hConfigureDlg;
<br />
INT_PTR nResponse = hConfigureDlg.DoModal();
if (nResponse == IDCANCEL)<br />
{<br />
return FALSE;
}<br />
<br />
hZigBee->ZBIFSubscribe( ZDO_SET_CONFIRM );<br />
hZigBee->ZBIFSubscribe( ZDO_RESET_CONFIRM );<br />
hZigBee->ZBIFSubscribe( ZDO_START_CONFIRM );<br />
hZigBee->ZBIFSubscribe( ZDO_END_DEVICE_BIND_CONFIRM );<br />
hZigBee->ZBIFSubscribe( AF_INDIRECT_CONFIRM );<br />
hZigBee->ZBIFSubscribe( ZDO_NLME_SYNC_CONFIRM );<br />
<br />
Sleep( 1000 );
<br />
hZigBee->ZDO_RESET_request( 0 );
<br />
<br />
return TRUE; <br />
And the same code without config dialog that doesn’t work:
BOOL ClightswitchDlg::OnInitDialog()<br />
{<br />
int retval;<br />
CDialog::OnInitDialog();<br />
<br />
<br />
<br />
<br />
hZigBee = new CZigBeeIf();
<br />
}<br />
<br />
retval = hZigBee->ZBIFConnect( m_hWnd );
<br />
<br />
hZigBee->ZBIFSubscribe( ZDO_SET_CONFIRM );<br />
hZigBee->ZBIFSubscribe( ZDO_RESET_CONFIRM );<br />
hZigBee->ZBIFSubscribe( ZDO_START_CONFIRM );<br />
hZigBee->ZBIFSubscribe( ZDO_END_DEVICE_BIND_CONFIRM );<br />
hZigBee->ZBIFSubscribe( AF_INDIRECT_CONFIRM );<br />
hZigBee->ZBIFSubscribe( ZDO_NLME_SYNC_CONFIRM );<br />
<br />
Sleep( 1000 );
<br />
hZigBee->ZDO_RESET_request( 0 );
<br />
return TRUE; <br />
}
|
|
|
|
|
Strange error, try stepping the code with the debugger to check if everything runs as expected, especially that the m_hWnd is not NULL.
The implementation of CZigBeeIf and the actual hardware associated with it are also suspicious. In the first case there is a greater time lag between the creation of the object and the subscribe events (a dialog pop ups and user must click at least one button). Try emulating this delay with a sleep call to see if that is what is causing the problem.
|
|
|
|
|
Thanks
A sleep call before Subscribe to the callbacks sorted it out.
|
|
|
|
|
Somebody knows or knows somebody that it knows to instantiate the ActiveX Print Template of InterNet Explorer?
More information about Print Template:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/IETechCol/dnwebgen/beyondprintpreview.asp
Please help! This is important.
Max from Brazil
|
|
|
|
|
hi,
i created a lib with c compiler -> Compile as C Code (/TC)
than the aquapark link this lib!
and when i start aquapark (i set a breakpoint in main.c) than i get the folliwings error:
C runtime library....
no idea whats wrong here...what should i change?
bye
<br />
'aquapark.exe': Loaded 'C:\Dokumente und Einstellungen\Gerald\Desktop\aquapark-20060404\aquapark\debug\aquapark.exe', Symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\Dokumente und Einstellungen\Gerald\Desktop\aquapark-20060404\aquapark\debug\msvcr80d.dll', Symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\Dokumente und Einstellungen\Gerald\Desktop\aquapark-20060404\aquapark\debug\SDL.dll', Binary was not built with debug information.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\glew32.dll', Binary was not built with debug information.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\glu32.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll', No symbols loaded.<br />
'aquapark.exe': Loaded 'C:\Dokumente und Einstellungen\Gerald\Desktop\aquapark-20060404\aquapark\debug\msvcr80.dll', Symbols loaded.<br />
First-chance exception at 0x7c91eae0 in aquapark.exe: 0xC0000005: Access violation reading location 0x00000130.<br />
R6034<br />
An application has made an attempt to load the C runtime library without using a manifest.<br />
This is an unsupported way to load Visual C++ DLLs. You need to modify your application to build with a manifest.<br />
For more information, see the "Visual C++ Libraries as Shared Side-by-Side Assemblies" topic in the product documentation.<br />
Windows has triggered a breakpoint in aquapark.exe.<br />
<br />
This may be due to a corruption of the heap, and indicates a bug in aquapark.exe or any of the DLLs it has loaded.<br />
<br />
The output window may have more diagnostic information<br />
-- modified at 19:40 Tuesday 4th April, 2006
|
|
|
|
|
surfman19 wrote: For more information, see the "Visual C++ Libraries as Shared Side-by-Side Assemblies" topic in the product documentation.
I'd start with that article.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
i read it! a dll is missing???????? hm
cu
|
|
|
|
|
Has anyone ever seen mention or code to obtain the text used to register a windows message?
Suppose I already have the message identifier, what I want to be able to do is to know what text was used to obtain the registered message identifier.
It would be similar to GlobalGetAtomName, which very curiously has an upper range one less than the beginning of the first registered windows message
We see our application bombarded with a registered windows message, and we want clues to find out what the 'message' really is.
People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
|
|
|
|
|
Hello everyone,
I am using LoadLibrary method in embedded Visual C++ 4.0 to load an dll file. I placed the dll file in \Windows directory, and then I use the following method to load it,
<br />
hLib = oLoadLibrary("\\Windows\\foo.dll");<br />
if (NULL == hLib)<br />
{ <br />
rc = -1;<br />
char* lpMsgBuf;<br />
FormatMessage( <br />
FORMAT_MESSAGE_ALLOCATE_BUFFER | <br />
FORMAT_MESSAGE_FROM_SYSTEM | <br />
FORMAT_MESSAGE_IGNORE_INSERTS,<br />
NULL,<br />
GetLastError(),<br />
0,
(LPTSTR) &lpMsgBuf,<br />
0,<br />
NULL <br />
);<br />
MessageBox( NULL, (LPCTSTR)lpMsgBuf, L"Error", MB_OK | MB_ICONINFORMATION );<br />
LocalFree( lpMsgBuf );<br />
}<br />
when executing the above statement, there is an error message said "The specified the module could be found". Does anyone know whether there is anything wrong with my above code segment or I need to do some environment setup?
I am currently using Microsoft embedded Visual C++ 4.0 (plus service pack 4), and I have installed Pocket PC 2003 SDK and using the emulator to debug the program.
thanks in advance,
George
|
|
|
|
|
This is for some medical research I'm involved in
http://www.xs4all.nl/~ingenium/dicom.html[^]
Under the download section for Windows I've downloaded the DICOM server, dgate and dicomlib. What I need to do is to investigate and use the "DiComDataObject" that's defined in one of the source files.
It's defined in DEIVR.hpp and cxx in "dicomlib" zip. I've never even seen a CXX file but it seems to just be C++ source
There are no project files and I'm having problems setting it up to compile just by adding these files into a Hello World Win32 console app. I've tried working out which files and libs I need to include but it's been so long since I used C++/VC++ its not easy so hope someone can quickly get me up to speed. All I want to be able to do is use these source files to be able to load a dicomdataobject (with its char* filename constructor) and then I should be able to work out how to fiddle with the object once it's in there
This would also just be general good info on how to set up projects properly - I had some errors about pre compiled headers which I couldnt find references to, then some data types were missing but I couldn't make them all go away, and I couldnt easily follow the chain of includes
can someone help me, I'd be forever indebted to you!
regards
Lee
|
|
|
|