|
I haven't used the function (nor even seen it), but I do recall a lot about ancient communication methods. Modems using the Hayes AT command set used to have an escape pattern that would access the modem, rather than transmittting the data following it over the communication link. This was +++ and it was used issue commands. The BRK command interrupts the data flow until it is cleared. This is used when a buffer is full to prevent the opposite end of the connection from continuing the stream of data. Where did you run across this? Google and MSDN return nothing.
"Your village called - They're missing their idiot."
|
|
|
|
|
Hi,
this will probably make me sound stupid but here goes anyway.
I'm writing an application in plain old C++.
I have some classes that i'd want to use in this application, but also in other applications.
So i want to put these classes in a directory of their own.
In the property page of the project(i'm using .NET), in the "C/C++ - General" tab i've listed the directory of the classes in the "additional include categories" box.
I then #include the classes in my application.
Problem is that although my application sees the classes, it gives me errors saying it cannot find the functions in the classes.
What am i doing wrong???
thanks in advance for any help,
henry
|
|
|
|
|
did you include the headers ? with the right paths ? i.e. either with
#include "someHeader.h"
or
#include <someHeader.h>
and what errors do you get when compiling, link errors or compile errors ?
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
yup, i include the two classes like this
#include <matrix.h>
#include <mvector.h>
im getting linker errors like the one below
glue.obj : error LNK2019: unresolved external symbol "public: __thiscall Matrix::~Matrix(void)" (??1Matrix@@QAE@XZ) referenced in function _main
The ~Matrix(void) function is declared and defined in the Matrix class.
any ideas??
|
|
|
|
|
Hallo,
has anyone an Idea or better an example for: "How to write a printer driver?". It would be nice if anyone can me sand a link or somthink.
The DDK is not very usefull for that .
Greetings
|
|
|
|
|
lol, the DDK is very useful and also completly useless!
the only way i know about is to fetch information from the DDK docs and the samples and do ur own thing... good luck
Don't try it, just do it!
|
|
|
|
|
In a method of an OCX, I start a thread. I want to fire an event of the control at the end of the thread. How can I start this event in the thread of the OCX? I cannot do a PostMessage because the control is not a window.
It seems to be an overkill to create a hidden window that would allow me to do so... Any idea?
|
|
|
|
|
I suspect this is a question to be answered in the COM forum. I think you should be able to marshal the pointer to the container's callback interface across to your worker thread, and then call it from there. COM should have created a proxy object for the thread which can perform the appropriate marshalling to get back onto the UI thread.
Look up CoMarshalInterThreadInterfaceInStream and the counterpart, CoGetInterfaceAndReleaseStream .
Note that I'm only guessing - I've never done this.
|
|
|
|
|
. I want to fire an event of the control at the end of the thread
If you really want to fire an event at the end of the thread, then it would be easier to just save args of your events and fire them on your main thread after secondary thread has finished.
Alternatively, of course you can use interface pointer marshaling and or GIT, however you will be faced then again with troubles of thread sync, because your windowless activeX doesn't have it's own message pump.
Therefore, I would suggest going with the hidden window, and I don't think it's overkill compared with interface pointer marshaling...
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
If you wanna fire an event at the end of your worker thread then the best thing is to monitor your thread execution status with GetExitCodeThread and fire the event directly from your control class. In order to do this you have to set the thread's autodelete member to FALSE.
This should do the job:
CWinThread* pThread = AfxBeginThread(...,CREATE_SUSPENDED);
pThread->m_bAutoDelete = FALSE;
pThread->ResumeThread();
DWORD dwExitCode;
while (TRUE)
{
GetExitCodeThread(pThread->m_hThread, dwExitCode);
if (dwExitCode != STILL_ACTIVE)
{
FireYourEvent();
break;
}
else
SleepABitAndPumpMessages();
}
Peter Molnar
|
|
|
|
|
I created a dialog that has sort of a "view" based on tutorial here.The class for "view" i called it COpengl for drawing. I have some controls on the dialog. How do i get the COpengl class (or rather the OnPAint() in this class)to retrieve the current values from the dialog needed for drawing?
|
|
|
|
|
Hi !
First of all, I have to mention that I never developped any libraries. But, for my application I need one, and many questions are raising in my mind. I hope you can help me a little bit.
- The library will be doing some process for the main application, but what has to be done by the library will be specific to a customer, which is why I want to keep the 'customer-dependent' code inside a library. But, my library will use many classes that are part of my main application, and I don't see how I'm supposed to develop a library which will have to know many classes from my application ? Is it possible to do what I want to do ?
- From my main application, will I have to use functions from the library, or can I instanciate classes which would be part of my library (for example, the base class would be declared in my main app, and derived classes would be declared in the library) ?
- Specific to Qt : do I have to do something particular in the code of the library (I've seen some piece of code from libraries for Windows and they had a WIN_DLL type keyword) ?
Well, as you can see, I don't have a very precise idea of what creating a library involves and I would appreciate your help !
Thank you !
Jerome
|
|
|
|
|
Hallo,
you can it use as an normal lib. The only thing what you must make is, include the qtxxx.lib in your makefile (path-variables must be ok). Use any function from the qtlib, is the same as you use the mfc.
Qt had a tool, qmake, which one you can make it. This tool create also your workspace (*.dsp) for you. See the manual for qmake, there can you find any information you want. A hint, use the Qt-Examples. She are very usefull.
Greetings
PS. sorry for my poor english. Is not my natural language
|
|
|
|
|
Hi !
Thank you for your answer, but I realize I didn't make myself clear enough. Actually, I don't want to link my application with a .lib and recompile it, I want my app to dynamically use a library (dll under windows) without having to recompile my main application.
Jerome
|
|
|
|
|
i want to have a toolbar on the right hand and i want to add its buttons from right to left.please tell me how could i do it?
|
|
|
|
|
Does anybody know how to use or interpret the BYTE array which one can get for a GDI+ region using the GetData method ? The MSDN library tells me only "The GetData method gets data that describes this region."
|
|
|
|
|
Hi All?
can anyone tell me how can I connect my Win32 API (NO MFC)application with a .mdb database using DAO or ADO ( I don't want to use ODBC)???
Thanks for any answer!
|
|
|
|
|
I'd use the ATLDBCLI templates. Not MFC, not dependant on MFC, lighter-weight than ADO.
Alternatively, if it's only ever going to be MDB, use the DAO SDK (which should be on the VC6 CD somewhere)
Steve S
|
|
|
|
|
Does DAO SDK works without linking my application with MFC dll??
|
|
|
|
|
Yes, as far as I know there are no dependencies on MFC in the DAO SDK.
Note that this ISN'T the same as the CDaoXXXXX stuff from MFC, of course.
Steve S
|
|
|
|
|
Hi guys,
I need to be able to display jpgs as a background for an MFC dialog based application but have no idea where to start. Any methods are greatly appreciated.
Xtremean
|
|
|
|
|
search in MSDN for IPicture
article by paul dilascia
|
|
|
|
|
If you are using VC7, MFC has a new class called CImage that lets you load any image format.
OR
You could use a the new CDHtmlDialog class and use HTML to display the jpg.
Art
|
|
|
|
|
I've noticed a (bad?) habit from some colleagues of mine to void -cast unused return values, as in
(void)::SystemTimeToFileTime(&st, &ft) I've personally never ever done that in C/C++, but something like it when scripting bash back in my dark Linux days (don't ask...)
Why on earth are they doing it and is it even necessary? I hope someone will say it's not recommended and provide a good link to Bjarne etc...
--
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. (Douglas Adams)
|
|
|
|
|
it could be some kind of convention they're using. There're many awkward conventions my friend, most of them nobody knows about; it's like politics.
Phil
|
|
|
|