|
I beleive I saw an article on codeproject about adding anouther button to the title bar, sorry I do not remeber what it for. If you can find it then you may have most of your solution.
Trust in the code Luke. Yea right!
|
|
|
|
|
Here is a error throw out when debug my program.
I know this question was asked for many times!
And I have search it and seen it.
I use several method which I get from web .
I select Edit==>Breakpoints And find none breakpoint there!
And I ReSetup a new project with same name .
copy all .h .cpp .rc files into the new project.
but the error throwed out yet!
I don't know why!
each time when the error occured,it stoped at
NTDLL! 77f9180c()
there are a part of code as follow:
<br />
m_pStillImage=new CxImage();<br />
if(m_pStillImage==NULL)<br />
return false;<br />
if(!m_pStillImage->Load(strFilePathName,ExtType))<br />
{<br />
return false;<br />
}<br />
........
if((m_TotalFrame=m_pStillImage->GetNumFrames())>1)<br />
{<br />
m_MoviePicDelay=m_pStillImage->GetFrameDelay();<br />
m_pMovieImage=new CxImage[m_TotalFrame];<br />
for(int i=0;i<m_TotalFrame;i++)<br />
{ <br />
m_pMovieImage[i].SetFrame(i);<br />
m_pMovieImage[i].Load(strFilePathName,ExtType);<br />
}<br />
if(m_pStillImage)<br />
{<br />
delete m_pStillImage;<br />
<big>
m_pStillImage=NULL;<br />
} <br />
}<br />
anybody!please help me!
Don't look at me in that way!
|
|
|
|
|
Try:-
1. looking at the call stack when the error occurs
2. m_pStillImage->Destroy() before delete m_pStillImage
3. CxImage m_StillImage instead, if this fails then you probably have something like a memory overwrite, use of an invalid pointer etc. in some part of your code
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
|
|
|
|
|
Hi
Can anyone explain to me how to define and implement callbacks in C? Just briefly. I'll get along from there
Thanks
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
OK i figured it out myself
Just one question, how do I define the callback properly, as both the folowwing gives the same results:
typedef int (SCCB)(char** suggest, int size);
or
typedef int (*SCCB)(char** suggest, int size);
Help appreciated
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
You are declaring a POINTER to a FUNCTION, so the correct syntax is:
typedef int (*SCCB)(char** suggest, int size);
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Hi:
How to show the tooltip for the menu? You can see this feature in IE's favorites menu. How could it do?
thanks
benben
|
|
|
|
|
you can try capturing menu messages (im too lazy to look up how) and consequently creating tooltip windows using the common control API
it's a big involved because it's probably not standard with windows
Roman Nurik
|
|
|
|
|
Hi, everyone!
I want to know what means "typo"? I often see it in
the reply of others. Who can you show me an example?
Thanks in advance,
George
|
|
|
|
|
A typo is simply when you type something wrong, e.g. you want to type if(pPointer == NULL) , but instead type if(pPointer = NULL) , which has a very different meaning.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks, Greg buddy!
Any type error can be called a typo?
regards,
George
|
|
|
|
|
Yep, "typo" is an abbreviation of "typographical error", as far as I know.
reagrds
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks, Greg buddy!
How interesting it is!
Have a nice weekend,
George
|
|
|
|
|
George2 wrote:
I want to know what means "typo"?
A mistake when typing.
-Nick Parker
|
|
|
|
|
Thanks, Nick buddy!
George
|
|
|
|
|
|
Thanks DavidCrow buddy!
George
|
|
|
|
|
Hi, everyone!
I know there are three types of exception specifications.
The weak exception spec, the strong exception spec and
the nothrow spec. But I just know the definitions and not
find any sample codes about the basic concept-proof ideas
about the three definitions.
I want to know where can I find some online resuorce of this
topic.
Thanks in advance,
George
|
|
|
|
|
|
Hi all,
I am thinking about developing an application using Visual C++ 6.0 and ASP. What licences will I need in order to be able to sell this application?
Will my customers have to buy any microsoft licences in order to run my application (apart from having IIS installed on their machine (for the ASP pages that will come with my application))?
I thank you in advance,
Chris.
|
|
|
|
|
Anonymous wrote:
Will my customers have to buy any microsoft licences in order to run my application...?
No, if that's all you're shipping to your customers. Any third-party controls, tools, etc. of course have their own licensing requirements.
By the way, if you are looking for a shareware reseller/marketer for your product, I recommend ShareIt. They have given me consistently excellent service, relatively low fees, plus they accept orders from European countries.
Best wishes,
Hans
|
|
|
|
|
Hello!
i'm writing a windows 9x service program and i need to get notified before program is put to death by external processes using TerminateProcess API.
could you please help me how to determine that my program is about to be forcibly terminated by TerminateProcess?
thanks a lot.
|
|
|
|
|
TerminateProcess will stop your program immediately. You will get no message or signal (a la Unix) that you are about to be terminated.
There are some tricks you can play - e.g., TP will not terminate child processes. So you could have a child process (not a thread) monitoring your service. But what happens if your child process gets TP'd?
I assume you are really talking about TP and not a user selecting Shutdown System?
At best, you can check a flag you create in Registry, and when your program starts again, you can check flag and see if orderly shutdown. If not, try to do some cleanup, or check database consistency, etc.
Best wishes,
Hans
|
|
|
|
|
I'm trying to build an application that has multiple(child) windows that are identical, but they are in different states of operation.
Each of these windows really is just a lot of the common controls.
Is this the correct approach
1 base CWnd
then Create a new Class based on CWnd and place my controls on a new CWnd owned by this class, then attach it the the base CWnd
or is there a better approach?
I'm really struggling with what I would have thought was quite easy or is it not??
I can't seem to find many articles etc on this kind of thing
I've already built the application using lots of ATL components, and VB to provide the UI.
The UI currently consists of 8 frames containing Progress bar for current status, and details of the current modem connection speed, the file that is being copied and the state that the program(thread) is in.
UI for each cell looks kinda like this and there are 8 of them (4cols x2 rows).
<br />
Store: [ readonly] Tel: [readonly] Bps:[readonly]<br />
Start: [readonly starttime] IP: [readonly] Err:[readonly]<br />
Status: [readonly]<br />
[Caption showing the current state of the program] [%complete as text]<br />
File: [filename readonly] Bytes: [x of y]<br />
[..............progress bar..............].br />
[Text box for messages to the user]<br />
Sorry for the loss of formatting.
|
|
|
|
|
It's hard to judge without more details. One alternative might be to use MDI app with CFormView-based windows. Another might be to have your app create multiple modeless dialogs.
Maybe if you described what you're trying to do in more detail, and what (if any) requirements there are, you would get better answers.
Best wishes,
Hans
|
|
|
|