|
Thanks! I'm having a look at it.
_____________________________
...and justice for all
APe
|
|
|
|
|
hi, i'm trying to package my console program as a static standalone, i.e. make it such that it does not require any dlls/libs on the client machine.
can someone tell me how to do it?? thanks a lot!
|
|
|
|
|
MFC as a statically linked library rather than DLL and make sure you don't specifiy an external DLLs.
Elaine
The tigress is here
|
|
|
|
|
hi, thanks for replying.
what do u mean by don't specify an external dll? i'm using oracle and so, i do have to use a certain oracl32.lib
would that be what u mean?
|
|
|
|
|
Then I think this won't be possible then. Unless you have lib file provided so you can statically link it instead of dynamically...
|
|
|
|
|
yes, i do have the lib file. u mean *.lib right? i have that. so how can i statically link it?
|
|
|
|
|
Normally (but I'm not sure), you can go to the project settings somewhere and specify all the libraries you are using. But I don't remember exactly where and I don't have VC++ installed here...
|
|
|
|
|
i've already done the settings. the problem arises when i try to use another computer that doesn't have the libraries already installed.
when i do so, the program won't work and it will complain that the libraries are not available. the problem is i can only have one file to push, as i'm doing a activex object. so i need to package those additional dlls/libs into the dll that i'm creating.
please help, i'm tearing my hair out!
|
|
|
|
|
ng kok chuan wrote:
the problem is i can only have one file to push, as i'm doing a activex object. so i need to package those additional dlls/libs into the dll that i'm creating.
?? Uhh... Why ?? An active X can use external dll, what is the problem here ?? You just need to ship all the files
|
|
|
|
|
it's cos the other files can't be installed as dlls. i'm using dlls from oracle and visual studio c++, and in order to use those dlls, it requires oracle and vc++ to be installed. i've tried registering the files manually but it doesn't work. hence the requirement to package as a static file instead of using dlls.
sigh, weird solution to a weird problem...
|
|
|
|
|
there is a way of creating ur own user defined messages .....can some one give me any linkz regarding that?.....
cheerz.....
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
Try this one,
www.codeproject.com/dialog/messagemgmt.asp
Grenouille
|
|
|
|
|
|
thankz everyone!
cheerz.....
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
I use RegisterWindowMessage() for this.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
hi all
i don't know how to send messages to other windows or active window...i think i have to have HWND of other windows and then just use API function sendmessage()///but...
please help me
thanks///
|
|
|
|
|
|
First you get the HWND of the window you want. You use a function like FindWindowEx to do this. Using Spy++ is great for figuring out your window hierarchy. Usually you want to get a window by the third parameter, the class because it doesn’t change like the text can change. Here is a short example:
HWND hNotepad = FindWindowEx(0, 0, "Notepad", 0);
if(hNotepad)
SendMessage(hNotepad, WM_SETTEXT, 0, (LPARAM) "Hah, I found you!");
else
MessageBox(0, "Couldn't find notepad.", "Darn", MB_OK);
|
|
|
|
|
so i know API function FindWindowEx but this function only finds other windows that we knew window's name.But i want to send messeages to other windows that i don't know window's name///
waiting...
thanks for...
|
|
|
|
|
Perhaps you're looking for EnumWindows(). Check it out.
|
|
|
|
|
Then you can bank upon Classname i.e. FindWindow find windows using two criteria either it use window caption to find window or Classname.
for getting the classname of that particular windows you can use external software like spy++ which comes with Visual studio.
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|
|
When compiling or running,there is a debug error: " Run-Timeb Chenk Failure #3-the varible 'enVideo' is being used without being defined"
How can I solve this problem? thanks......
HRESULT CAVDlg::DeliverMedia(long lMediaType, RTC_MEDIA_EVENT_TYPE enType, <br />
RTC_MEDIA_EVENT_REASON enReason)<br />
{<br />
RTC_VIDEO_DEVICE enVideo;<br />
BOOL fShow;<br />
HRESULT hr = S_OK;<br />
<br />
<br />
switch (lMediaType)<br />
{<br />
case RTCMT_VIDEO_SEND:<br />
enVideo = RTCVD_PREVIEW;<br />
break;<br />
<br />
case RTCMT_VIDEO_RECEIVE:<br />
enVideo = RTCVD_RECEIVE;<br />
break;<br />
<br />
case RTCMT_T120_SENDRECV:<br />
break;<br />
<br />
default:<br />
return S_OK;<br />
}<br />
<br />
switch (enType) <br />
{<br />
case RTCMET_STARTED:<br />
fShow = TRUE;<br />
break;<br />
<br />
case RTCMET_STOPPED:<br />
::ShowWindow(m_hRecvVideoParent, SW_HIDE);<br />
::SetParent(m_hRecvVideoParent, NULL);<br />
<br />
::ShowWindow(m_hPrevVideoParent, SW_HIDE);<br />
::SetParent(m_hPrevVideoParent, NULL);<br />
<br />
SetState (RTCSS_IDLE);<br />
<br />
SAFE_RELEASE(m_pSession);<br />
<br />
DestroyWindow();<br />
return S_OK;<br />
<br />
case RTCMET_FAILED:<br />
fShow = FALSE;<br />
break;<br />
<br />
default:<br />
return S_OK;<br />
}<br />
<br />
hr = ShowVideo(enVideo, fShow);<br />
<br />
return hr;<br />
<br />
}
|
|
|
|
|
You only assign a value to enVideo in one case so if that case is not executed there will not be a value assigned.
When you declare enVideo assign a default value.
Elaine
The tigress is here
|
|
|
|
|
|
Hi,
I have developed one simulator in MFC/C++ which interact with the realtime control software on the same machine and perform well.Now i want this simulator should also communicated when control software run on different machine.Input for simulator should be the ip of the system where control software running.Can socket programming help in this requirement.
Thanks
|
|
|
|