|
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
|
|
|
|
|
|
Can you please let me know how? If i will use socket programming
1)I need to know the ip of the machine where control software running.
2)Common port should be there for communication.
Do you have any suggestion to overcome performance issue?
Thanks
|
|
|
|
|
|
I am not allow to make any change into control software code.I can only make changes into simulator code.
|
|
|
|
|
itkid wrote:
1)I need to know the ip of the machine where control software running.
yes you need as it reuired for socket connection
itkid wrote:
2)Common port should be there for communication.
if there is no common port how will you communicate betwwen two sockets
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|
|
Hi all, I have a project which has sub projects in it..one project will be the start up project.Can i inlcude the header file of one proj in another and Is it sufficient if i make the declaration in the startup file
|
|
|
|
|
You can include files from all over the place. Observe:
// if you want to go up, use ..
#include "../secret.h"
// if you need to go down, use /
#include "/mission/command/base.h"
You could just make one huge header file which includes all the header files. Most people only do this with header files that rarely change because if you change say, base.h and everyone includes base.h then they all have to recompile if the change was drastic enough. Changing the size of an object or type of a function will do it.
|
|
|
|