|
neha.agarwal27 wrote: And similarly i want to change the name of exe file through coding
actually that name is part of String Table you have to edit that!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
i have tried it by changing IDR_MAINFRAME Caption but its not changing.
Whenever i run it it always come
Untitled - website
n i want to change it to Neha
similary exe name is coming website.exe n i want to change it to neha.exe..
|
|
|
|
|
neha.agarwal27 wrote: n i want to change it to Neha
Override PreCreateWindow
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
cs.style &= ~FWS_ADDTOTITLE;
cs.lpszName ="Neha";
return TRUE;
}
|
|
|
|
|
Thanku all
My problem is being solved........
|
|
|
|
|
neha.agarwal27 wrote: similary exe name is coming website.exe n i want to change it to neha.exe..
For this, In my knowledge there is no way. I think, you need to follow path suggested by Paresh.
|
|
|
|
|
Q. To change the SDI application mainframe name ?
A. In the resource string table, change the value of IDR_MAINFRAME resource id.
Q. To change the name of exe file ?
A. Go to "Project | Settings | Link" tab. Category -> General. Edit "Output file name".
Regards,
Paresh.
|
|
|
|
|
Hi there,
I have a CWnd custom control and and i set the scroll bar range by using SetScrollRange in OnPaint function.
this->SetScrollRange(SB_HORZ, 0,110000, TRUE);
However, i notice that by a certain range, the diagram the is shown at the beginning of the scroll position repeats itself. And when I scroll further, it will also repeat the same thing again.
Why does this happens?
Thanks for any help
|
|
|
|
|
yes it has a limit.
(from MSDN)
The difference between the values specified by nMinPos and nMaxPos must not be greater than 32,767. The default range for a scroll-bar control is empty; that is, both nMinPos and nMaxPos are zero.
Murali Krishna
|
|
|
|
|
I've notice that if i drag the scrollbar using mouse, the diagram will repeat itself when it reaches a certain range. However, if i click the scrollbar button (which looks like this "[>]" to the left), it can scroll to a larger range but it is too slow if i wan to scroll fast to a certain range. Sometimes when i need to scroll fast,i normally drag the scroll bar to achieve this. However, i also need to be able to scroll slowly by clicking on the scrollbar button. Any suggestion on how to be able to scroll fast and slow whenever needed?
|
|
|
|
|
in my code , i used the system() to excute some command.
when the command excute , always show the DOS window.
i want to hind it, how?
|
|
|
|
|
Instead use ShellExecuteEx . And use SHELLEXECUTEINFO-->nShow to hide the window,
e.g
SHELLEXECUTEINFO ShExecInfo;
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.nShow = SW_HIDE;
ShellExecuteEx(&ShExecInfo);
|
|
|
|
|
thanks!
i have got it~
i use WinExec(strCmd, SW_HIDE); in stand of the system();
it works !
|
|
|
|
|
jakeyjia wrote: i use WinExec(strCmd, SW_HIDE); in stand of the system();
Havn't you seen Note in MSDN documentation for this API ?
Note This function is provided only for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function.
|
|
|
|
|
i see~ but it works? why?
|
|
|
|
|
CreateProcess(), WinExec(), ShellExecute() are ok
system() works, but exists for backward compatibility with 16bit applications. you shouldn't use it
|
|
|
|
|
Its there for backword compatability.
And , why dont use enhanced robhust version for same purpose ?
|
|
|
|
|
Hi, I have a VC6 program that includes heavy use of serial communications. My problem is that when a serial connection is live and the computer enters sleep mode the computer becomes unpredictable - freezing when sleep is intiated, or refusing to come out of sleep mode.
If I first manually close the COM port(s) then let the computer go to sleep (or hibernate) then everything works as expected.
So my question is, is there any way I can detect when sleep (or hibernate) mode is being entered from code in my program (so I can force a close of the COM ports)? And similarly to identify when the computer is waking up (so I can reopen the COM ports)?
Appreciate any help...
Simon.
|
|
|
|
|
|
Thanks Xing,
This appears to be exactly what I'll need ... back to coding!
Cheers, Simon.
|
|
|
|
|
Is there a way to import an object created with a 3d-modeling program (ex. Google Sketchup) to an OpenGL application and use it?
If yes what file type must it be (.obj?) and how?
I'm new at this
|
|
|
|
|
Try asking this on the graphics forum. I don't know about openGL but I know Direct3D has adapters/plugind/convertors for many of the popular 3Dmodelling softwares file formats. I'm sure OGL has the same.
|
|
|
|
|
Right, I didn't see that forum. thanks
|
|
|
|
|
I'm calling:
Graphics.SetSmoothingMode(Gdiplus::SmoothingModeAntiAlias);
but still it doesn't work. My Metafile object is drawn without antialiasing.
Does anyone know why?
Thanks!
[b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
|
|
|
|
|
Hello,
I am doing a conversion of a unsigned --int64 to binary using 2003 and does not seem to work. This code works with VC++ 6.0.
In My header file i define a structure
#define QWORD unsigned __int64
#define NUM_EVENTS 53
struct SList // sl
{
int idObject;
int EMPTY_OBJECT_ID;
BOOL aEvents[NUM_EVENTS];
SList() : idObject(EMPTY_OBJECT_ID)
{ ::memset(aEvents, 0x00, sizeof(aEvents)); }
SList(int id) : idObject(id)
{ ::memset(aEvents, 0x00, sizeof(aEvents)); }
SList(int id, QWORD qwEnabled)
{
SList();
idObject = id;
for (int i = 0; i < NUM_EVENTS; i++)
aEvents[i] = 0 != (qwEnabled & (QWORD)(1 <<
(QWORD)i));
}
};
In My cpp file i am populating a temporary list,
int id =12345;
QWORD qEnable = 9007191738548223;
CArray <SList*, SList*> aSList;
SList* psl = new SList(id, qEnable);
// Add them to a temporary list.
aSList.Add(psl);
Anyone having any idea whether there is any patch to rectify? Pls help
Anil
|
|
|
|
|
What is the problem that is occuring?
What if you use the LL suffix on your QWORD literals...
for (int i = 0; i < NUM_EVENTS; i++)
aEvents[i] = 0 != (qwEnabled & (QWORD)(1LL <<
(QWORD)i));
Also have you applied SP1 to VS2003?
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|