|
Create SDI with formView, copy your dialog, change formView to use it.
|
|
|
|
|
Thanks, are there any tutorials out there that address this approach? I notice I don't have the standard buttons on the toolbar, just a dialog kinda like in a dialog based application.
|
|
|
|
|
Here is my dilemma with status bars...
I'm trying to run OnTimer routines that update GPS coordinates on a cStatus bar pane
...whats actually happening is i see a flicker of text in the wnd_pane and then it gets wiped away
...the strange thing is that when i click on the menu buttons the GPS text pane is always visible and there is no flicker.
how can i get the main frame to behave the same way so i can constantly see the GPS text ................real time??
i tried implemeting the timer update of the statusbar within the view rather than the main frame... but the result is the same.... what am i missing??
-perseus
|
|
|
|
|
I know this sounds far-fatched... but is there any way to force the OS to unload a DLL without exiting the program itself? I am working with a 3rd party library, which apparently has some global data in it that is initialized when it is loaded. I, however, need to re-initialize this data at a certain point in my program, and would like to do it without having to physically exit the whole program and restart-- the thought came to mind that maybe i could just force an unload/reload on the DLL in some manner.
Thanks for any ideas,
|
|
|
|
|
LoadLibrary FreeLibrary?
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
|
|
|
|
|
I need to be able to access a remote pop3 inbox from a windows service. Is MAPI able to do this or will I have to use sockets? Any help is appreciated.
cc
|
|
|
|
|
Hi:
I have figured out how to pass data from VB to C++, but I am having troubles with sending arrays back to VB.
Suppose my C++ DLL created an array of integers and I have a pointer to this array that I pass back to the VB application along with the number of elements.
Now, how do I handle it on the VB side?
Do I have to allocate a buffer before I make the call, and let the C++ populate this buffer?
Or can I allocate the buffer in the C++ code?
What if I don't know the size of the buffer beforehand?
If I just have the pointer and the number of elements, what would be a VB equivalent to do something like this:
for( int n = 0; n < nTotal; n++ )
{
dValue = *( ( double * )cPointer );
cPointer += sizeof( double );
}
Thanks a lot.
|
|
|
|
|
|
I though about using SAFEARRAY, but it seems to add too much of (maybe) unnecessary overhead. Can you think of any other options?
I have a feeling that CopyMemory would have to be involved somehow
|
|
|
|
|
Anton A. Loukine wrote:
...but it seems to add too much of (maybe) unnecessary overhead.
Using what gauge?
|
|
|
|
|
Maybe because there is more code to write, the header of a SAFEARRAY contains more information than required. It may not be the case, but I would like to consider more than 1 option.
Also, when a safearray is passed from C++ to VB, what is actually passed (i.e., pointer only, the header + pointer to data)?
|
|
|
|
|
See if the MSDN article Q207931 sheds any light on this.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Has anyone else seen this:
I have a single HTML dialog that is called by a DLL. When the dialog box is displayed, there's the standard TODO:, OK, and Cancel buttons underneath the conrols I have added/changed. However, when you edit the dialog resource, they are not there. I could not find anything in the .rc, .rc2, or resource.h My assumption is that they are getting added from a library or something. Any ideas?
|
|
|
|
|
Never Mind, stupidity seeped in. Forgot about the .htm file until I created a new DLG.
|
|
|
|
|
How to send AT command to modem?
|
|
|
|
|
One way is to use outp().
|
|
|
|
|
outp()? What's that? Have found no trace in VC Help
|
|
|
|
|
int _outp( unsigned short port, int databyte );<br />
<br />
unsigned short _outpw( unsigned short port, unsigned short dataword );<br />
<br />
unsigned long _outpd( unsigned short port, unsigned long dataword );
The _outp(), _outpw(), and _outpd() functions write a byte, a word, and a double word, respectively, to the specified output port. The port argument can be any unsigned integer in the range 0 – 65,535; databyte can be any integer in the range 0 – 255; and dataword can be any value in the range of an integer, an unsigned short integer, and an unsigned long integer, respectively.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__outp.2c_._outpw.2c_._outpd.asp[^]
|
|
|
|
|
Sorry my hands are shaking after reading the replies you have already recieved.
Read up on TAPI (Telephony API) in the MSDN Library (the best way to hanle modems).
If you are writing your onwn code to access the modem (Not recommend - but I had to do it for Win31 [and port to Win32 still uses it]) via a comport then read up on how to open a comport via CreateFile() in the MSDN Libaray. Once you have an open open comport handle then you can use WriteFile() to send the AT commands (text commands) with WriteFile(), just like you would if you were writing to a file.
As for _outp() and _outw() those are used to access hardware ports (very low level), not for accessing a modem. You can not even use these function to access hardware for you program under WinNT/Win200/WinXP, unless you are using a driver like UserPort.sys (freeware-on the net). Normaly only a system kernal-mode driver can access hardware ports under those systems.
Trust in the code Luke. Yea right!
|
|
|
|
|
:(Sorry I was so upset that a replied to the wrong person. Look thru the list of replies to your post for my answer. If you need more infomation let me know.
Trust in the code Luke. Yea right!
|
|
|
|
|
One easy way to sent commands to modem:
Open a port using CreateFile() api.
Then you will able to read or write on that handle using ReadFile() & WriteFile() apis just like as you read and write from file.
Thats all !!!!!!!!!!!!
C.R.Naik
|
|
|
|
|
I can send AT commands using WriteFile. But how can I, for example, transmit byte to a remote system when I'm already connected?
|
|
|
|
|
WriteFile()
Trust in the code Luke. Yea right!
|
|
|
|
|
Modem works in two modes. One is command mode and another one is Online(data) mode.
While modem is in command mode it replies apropriatly to your commands. While it is in online mode whatever you are sending to it through port, it will forward it to remote modem.
So to transmit byte to remote system you have to bring modem in Online mode first.
Chintan
C.R.Naik
|
|
|
|
|
Hallo!!
How can I select items in a ListCtrl programm-side without focus on the Control ??
The program must select the item, not the user. and the focus must not be on the control.
I have only text in the ListCtrl , how can I change the size of the text??
|
|
|
|