|
if any1 could tell me if
we can display (.exe) or (.swf) files in dialogs and formviews
|
|
|
|
|
paresh_sarjani wrote: we can display (.exe)
Probably not, except in binary format ?? but I'm not certain why you would want to display a .exe in a dialog ?
paresh_sarjani wrote: or (.swf) files
Probably, maybe Macromedia sell or give away an ActiveX or something to display flash in a dialog ?
|
|
|
|
|
actualyyyyyyy
active x goes very lenghty
and flash file can b converted into exe format
no other choice den activex?????
|
|
|
|
|
What does mean display exe file in the dialog do you want to run it you can use of Shellexecute or createprocess.
|
|
|
|
|
Hi all, i know that this question is quite stupid but how could i convet int to a CString Var.
Thx.
"The Ultimate Limit Is Only Your Imagination.
|
|
|
|
|
There are no stupid questions, but you could have at least do a little searching before.
There are numerous resources available on the thing we call the Internet to help you find an answer.
I will give you a hint : You will need to Format your number to be able to convert it into a CString.
|
|
|
|
|
yes you are all reson, but due to numerous search for tuff things i m exhausted
any way i found it on msdn:
[code]
* CString szStr;
* int iCpt;
*
* szStr.Format("%d",iCpt);
[/code]
and it works.
Thank you again.;)
"The Ultimate Limit Is Only Your Imagination.
|
|
|
|
|
if
int d;
CString str;
den
str.format("%d",d);
|
|
|
|
|
Or you can use of wsprintf.
|
|
|
|
|
I am getting compiler error - sorry no C number - which translates to lack of drive space on C drive for temporary files.
I am unable to find where to change this to other drive.
Anybody knows how to change the temporary files location on existing project workspace?
Thanks for your help.
Vaclav
|
|
|
|
|
Vaclav_Sal wrote: I am unable to find where to change this to other drive.
The TEMP environment variable, perhaps?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
But which one? Under what user?
Pardon my ignorance - but should that be an option in application and not in OS?
I am running Windoze 2000 Advanced Server and see few of the TEMP directories
- under each user.
I guess administrator would be the one since I log on as such.
I hope other applications don't complain.
|
|
|
|
|
I am writing code to track down memory leaks in our program. I am doing this by overloading the new(size_t), new[](size_t), delete(size_t) and delete[](size_t) functions so that I can keep track of which calls to new do not have a corresponding delete. This is all working well.
Now to my question, try as I might I cannot get the callers __FILE__ and __LINE__ information which I also need. I have tried #define new new(__FILE__,__LINE__) etc... but this is not compatible with existing code. I therefore feel that at some point in the call to new and new[], etc... that I need to move up the call stack a level to the caller so as I can obtain the __FILE__ and __LINE__ information from the stack page of interest.
Does anyone have any example code of how this can be done, please?
|
|
|
|
|
Andy H wrote: I have tried #define new new(__FILE__,__LINE__) etc... but this is not compatible with existing code.
Just for my own edification, why not?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Andy H wrote: I am writing code to track down memory leaks in our program.
Is there some reason you don't use a tool that finds memory leaks?
|
|
|
|
|
I don't get, how do you want to get file and line with stack trace, but you can obtain your return address with
<br />
void *lpReturnAddress;<br />
__asm<br />
{<br />
mov lpReturnAddress, DWORD PTR[esp]<br />
}
|
|
|
|
|
Thanks, I hadn't thought of assembler code. The following did the trick:
unsigned* my_ebp;<br />
__asm<br />
{<br />
mov eax, ebp<br />
mov dword ptr [my_ebp], eax<br />
}
|
|
|
|
|
Hi,
I am using CResizableFormView for my Form and it has been derived from CFormView. The mouse wheel scroll seems to have got de-activated. In another application that uses just CFormView, the mouse wheel movement is automatically transfered to the scroll function.
How do I implement this in CResizableFormView?
There is also something else that I would like to do :
When the button 'Results' is clicked, the Form should automatically scroll to that part where the results are visible. Just like in web-pages. Please can you give me an idea how this may do done?
Thanks.
Fortitudine Vincimus!
|
|
|
|
|
You can use the OnMouseWheel and call OnVScroll, or SetScrollPosition
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Thanks.
Please can you tell me how to get hold of the windows scroll bars. I guess I must use
CScrollBar * bar = new CScrollBar;
bar->SetScrollPos(100,TRUE);
But before calling SetScrollPos, I must get 'bar' to point to the CFormView's vertical scroll bars. What is the correct way to do this?
Thanks.
Fortitudine Vincimus!
|
|
|
|
|
Hi All,
My quest is simple, Im using MFC under VS 6.0
I wanna create some Golbale Variables . So how could i create a Golbale Variable under MFC? and in which Class. My Prog is named AutoParall so i have Classes like CAutoParallApp and so on.
thank you .
|
|
|
|
|
you have already an example of it:
The Application Wizard defines the global variable theApp inside the application source file (i.e. AutoParallApp.cpp AutoParall.cpp in your case).
You can use theApp on any other source file (for instance in the MainFrm.cpp ) provided you declare it as extern (i.e. extern CAutoParallApp theApp; ) in the corrensponding header file (MainFrm.h in the previous example).
You can also make it visible to all sources, declaring it extern inside the StdAfx.h header (included by all sources of you project).
I hope that you can find out your way now.
-- modified at 11:35 Wednesday 28th November, 2007
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Ok thx 4 the reply but in my case i have more than 45 Golbals Variables that i use in my Prog so how could i declare all the Vars, besides theApp Var.
|
|
|
|
|
Blood_HaZaRd wrote: i have more than 45 Golbals Variables
Too many!!!!!!!!!!!!!
Anyway:
I suggest you to define the variables inside the application source AutoParall.cpp , for instance:
int iMyGlobalVar1 = 0;
DWORD dwMyGlobalVar2 = 0;
...
and to declare the variables themselves in the StdAfx.h file, for instance:
extern int iMyGlobalVar1;
extern DWORD dwMyGlobalVar2;
...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
thank you, i ll try to follow yrs instructions.
|
|
|
|