|
|
How do I do that????
We have a mathematician, a different kind of mathematician, and a statistician!
|
|
|
|
|
No cast is necessary:
int i = 12345;
unsigned int ui = i;
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
The plugin´s name?
Quotation "I forgot the name of it, but there is a compiler plugin for VC++ that distributes the compiling across the network, so that build times are near zero, with only linking occuring at the requester. I recall hearing about game companies using it for their massive builds, diminishing hour long builds to less than a minute."
Gywox
|
|
|
|
|
I cannot remember how you make any new document inside an MDI app maximized by default...
I want the window to default to maximized state I do not want to set it to maximized state inside some function like:
CView::OnInitialUpdate() and call
CChildFrame* pFrame = (CChildFrame*)GetParentFrame();
pFrame->MDIMaximize();
All these techniques still cause serious flicker when opening new windows...or navigating...
Is this possible?
TIA
How do I print my voice mail?
|
|
|
|
|
Override PreCreateWindow() in your child frame class and make sure cs.style includes WS_MAXIMIZE .
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
There is a SDI app that I want to shut down after 1 second (it's a frame capture app).
I have tried PostMessage but haven't been able to figure it out yet.
Does anyone have a suggestion ?
Ta.
Elaine
The tigress is here
|
|
|
|
|
PostMessage(WM_CLOSE, 0, 0);
|
|
|
|
|
Yes, but where in the application, remembering that I will need to start a timer ?
The tigress is here
|
|
|
|
|
Check Sleep
or call SetTimer, and you will receive a message WM_TIMER that you need to handle
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I'm trying to modify the style(CBS_SORT) of a combo box control inside a dialog box at run time. Its seems its not updating? I added the ModifyStyle function inside the InitDialog of the Dialogbox. Is there something I'm missing?
Thanks
|
|
|
|
|
as i tested before, it can not be changed at runtime, may be i (and u) lost something.
my poor solution is:
use 2 combo-boxes, hide one and show one as requested.
includeh10
|
|
|
|
|
I’ve got a .dll from my supplier that I am trying to create a instance of. (I’m not realy good att dll’s).
How may I search for errors when my call to: CreateInstance(…) fails
I know it would return a HRESULT and that the value is 1 on those cpu-s which it don’t work on. The call work properly on my developing machine.
I surely have registered the dll on those cpu-s the call fails.
Pleased for any suggestions…
...and justice for all
APe
|
|
|
|
|
d00_ape wrote:
I’ve got a .dll from my supplier...
Does the DLL's supplier have any suggestions?
d00_ape wrote:
I surely have registered the dll on those cpu-s the call fails.
What about any controls that the DLL uses that might need to be registered?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
The supplier is unfortunately not contactable in about three weeks…
I've checked dependencies using "Dependency Walker" and all seems OK.
...and justice for all
APe
|
|
|
|
|
d00_ape wrote:
The supplier is unfortunately not contactable in about three weeks…
So how about contacting them before the three weeks are up?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
sorry not "in". Ment after...
...and justice for all
APe
|
|
|
|
|
Have you called the CoInitialise(...) before createing the object ?
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
My codeline before is:
//Init OLE
CoInitialize(NULL);
// then CreatiInstance(...)
...and justice for all
APe
|
|
|
|
|
I have set WH_CBT in a dll,problem happened in his call back function:
LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam)
{
if(nCode==HCBT_ACTIVATE)
{
CWnd * pWnd; // Ö¸Õë
HWND hwnd; // ¾ä±ú
DWORD dwNewProcId,dwReturn;
hwnd = (HWND)wParam; // Active Window Handle
pWnd = CWnd::FromHandle(hwnd);
dwReturn=::GetWindowThreadProcessId(hwnd,&dwNewProcId);
pWndActive = pWnd; // µ±Ç°¼¤»î´°ÌåµÄÖ¸Õë
if (dwReturn > 0)
{
if(bFlag)
{
bFlag=false;//bFlag is a global variant
code else; //and initial value is true,but these code
//are executed every times,why? I have no idea
}
}
}
}
|
|
|
|
|
Did you use a shared data segment?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
You could try putting a breakpoint on bFlag when it is changed. This may show you where the flag is being set to true.
Ant.
|
|
|
|
|
Unless bFlag is in a shared data segment then each process will get its own set of variables for the DLL. So setting it to false only sets it for the current process. Look at http://www.codeproject.com/dll/data_seg_share.asp[^] to see how to create variables in a data segment that is shared between all processes using a DLL.
Mike
|
|
|
|
|
Hi,
Could anyone here recomend a good SDK/Libraries/Sources that will enable me to use IMAP from my application?
I am developing in C++, however I am open to any suggestions.
I have checked componentsource who seem to have a lot of PowerTCP and IPWorks componenets. Is there another site that might have more veriaty?
Thanks,
Jeremy.
Jeremy Pullicino
C++ Developer
Homepage
|
|
|
|
|
i have a c++ sample which generates a active control in exe format, readme says it can be used in VB.
i have no idea how to use it in vb.
if u know VB, please give me a clue for quick start
thx
includeh10
|
|
|
|