|
I'm sorry about the stupid question,but it's UpdateData() and
not UpDateData(),isn't it??????????
Eli
|
|
|
|
|
It is possible to add document/view architecture support to an ActiveX controls?
I have to develop an ActiveX control similar to drawcli sample stand alone application included in MSDN 2000.
if anyone has idea about this, please reply.
|
|
|
|
|
Hello all,
I'm having issues right now trying to start a new project. It involves connecting to remote mySQL databases and I'm running into compile issues with mysql.h and libmysql.dll.
The issue is that I'm not sure if I need ALL of mySQL installed onto this test machine or if there's a way to just get what I need to do the programming.
Thanks.
Lost in documentation.
--
David Coley
http://www.codecipher.com
|
|
|
|
|
i can not find regsvr32.exe on the win XP, where is it?
is there no regsvr32.exe on XP? how to register COM?
includeh10
|
|
|
|
|
It's in the C:\WINDOWS\system32
Igor.
|
|
|
|
|
did you see it there?
i can't find it, why?
includeh10
|
|
|
|
|
includeh10 wrote:
did you see it there?
Yes, on XP Home.
includeh10 wrote:
i can't find it, why?
Has somebody deleted it?
Igor.
|
|
|
|
|
Use this little piece of code for manually regiter the COM
Actually working of RegSvr32 is like this
it load the Dll using LoadLibrary api and
them call DLLRegisterServer to register the server.
you can do that programatically like this
<code>typedef HRESULT (WINAPI *DLLREG)();</code>
HMODULE hLib;
hLib=<code>LoadLibrary</code>(YOU_COM_DLL_NAME);
if(!hLib)
{
MessageBox(NULL,"The File you Refering not found","Error",MB_OK);
return;
}
DLLREG fnDllReg;
fnDllReg=(DLLREG)GetProcAddress("<code>DllRegisterServer</code>");
if(!fnDllReg)
{
MessageBox(NULL,"The Dll is Loaded Correctly but DllRegisterServer function
not found","ERROR",MB_OK);
return;
}
if(SUCCEEDED(<code>fnDllReg</code>))
MessageBox(NULL,"The Com DLL register Successfully","CONGRETS",MB_OK);
else
MessageBox(NULL,"The Com DLL registerering fail","ERROR",MB_OK);
}
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
Running the following command will also do it
rundll32 urCom.dll,DllRegisterServer
suhredayan There is no spoon.
|
|
|
|
|
I will try that..............
one min trying.................
...................
.......................
.........................
Oh it's Really work, thanks
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
If the DLL you are trying to register contains COM and you did not initialze COM, then this will not work. You should probably add a call to CoInitializeEx.
|
|
|
|
|
I have to check that before commenting.
i will let you know about my test cases. thank for pointing me about that.
Thanks Once again
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
I would like to draw into a dialog box a pattern that depends on the current status of my application.
How can I do that ?
Is there a OnPaint function for a Dialog Box ?
How can I get its Drawing Context ?
|
|
|
|
|
It is probably simpler to put a picture control (or an icon control) in the dialog and use the OnPaint() or LoadIcon() function for that control.
Steve
|
|
|
|
|
you shuold use CDC to get the device context:
CDC *dc = m_YourDialog.getDC();
// use dc's function to draw what you need(look for CDC in MSDN)
// don't forget to release thwe device context in the end
ReleaseDC(dc);
Regards,
Eli
|
|
|
|
|
Each dialog created by wizard (MFC) has OnPaint – WM_PAINT message handler.
If you create API dialog WM_PAINT handler is the place.
You can also draw (paint) in WM_ERASEBKGND message handler.
JohnCz
|
|
|
|
|
I created a simple login dialog for my app with the dialog editor. When I test the dialog, the controls with the tab stop property work fine; I can tab through them perfectly. But when I get to the same dialog in my compiled program, tab does not change the focus and causes an annoying system beep. Anyone now how to fix this? I am not using MFC at all.
|
|
|
|
|
|
Oh, that's what it was. Thnx
Works now
|
|
|
|
|
in the SetWindowsHookEx function, I set the _pModule->get_m_hInst() as the HINSTANCE parameter.
The relust of this code is a local hook on the procedure.
"Global hook procedures should be placed in a separate DLL". is com is a separate DLL
<br />
hKeyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, <br />
LowLevelKeyboardProc, <br />
_pModule->get_m_hInst(), <br />
0);<br />
a related article is talking about the subject in a standart DLL (not COM).
http://www.codeproject.com/win32/AntonioWinLock.asp
|
|
|
|
|
Hello!
I need to execute the HtmlHelp application with some file and page as parameter. I wanted to use the CreateProcess function for this, but unfortunately cannot get it work.
This works perfectly:
WinExec("hh.exe MyHelpFile.chm::features.html", SW_SHOW);
But this doesn't work:
STARTUPINFO sui;
PROCESS_INFORMATION pi;
ZeroMemory(&sui, sizeof(STARTUPINFO); sui.cb = sizeof(STARTUPINFO);
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION);
CreateProcess("hh.exe", "MyHelpFile.chm::features.html", NULL, NULL, FALSE, 0, NULL, NULL, &sui, &pi); Anyone knows why the WinExec works, but the CreateProcess doesn't??
Thanks and best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
This looks good to me. From memory WinExec() is a wrapper around CreateProcess(). What does GetLastError() return?
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
It returns 2: file could not be found...
Any idea?
Best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
|
Hm.. Ok, now the hh.exe starts at least... Hh.exe is in my Windows directory, will it always be there? (under WinNT in WinNT directory?) Even if using the GetWindowsDirectory function, it's a dangerous assumption...
But now I get an error from the hh.exe: no command line was specified?!??!
Any more ideas?
Thanks and best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|