|
I am trying to create custom wizard where I want to add multiple projects to single solution file. In the script file (default.js) in the OnFinish() function I want to add some projects to the existing solution file.
Now if I added multiple projects using CreateCustomProject() function but when I actually create any solution I just see one project, other project remain orfan.
Please let me know which function to use to add the projects to the exisiting solution file. I'm using VS.NET 2003 for the custom wizard project.
Please HELP
Thanks.
|
|
|
|
|
I'm thinking of automatically configure the 802.11 wireless network without use the standard windows wizard.
Can any expert tell me which kind of steps and APIs I should use to achieve this object.
Thanks
|
|
|
|
|
Is there any way to compile only 1 cpp file in Visual Studio 2003? The build menu only allows you to build the whole project, but I want to compile only 1 source file. I could do it in VC6, but they removed the option, apparently. Do I have to use the command line to do this?
Thanks for any help.
tentons
http://www.griminventions.com
|
|
|
|
|
Don't know about menus, but I use Ctrl-F7 for that, just like in VC6 (I have VC++ key mappings)
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
It's still there.
Right-click on *.cpp file in solution tree, you'll see "Compile" option there.
And you can press ctrl+f7 as it was mentioned already.
Cheers.
|
|
|
|
|
How to make a button like MSN sign in button
and how to change she mouse to hand when the mouse is over the button...
thanks : )
|
|
|
|
|
|
I'm a newbie at this and I'm trying to find an easy way to reposition the controls accordingly in a dialog box when it is resized? (i.e. buttons, list controls, etc..) This includes being resized and also using the maximize/minimize
I've checked out some of the classes that you can add from codeproject.com but I wanted to know if there was a way to do it in the code.
Any help is appreciated.
|
|
|
|
|
Any reason why you don't want to use the classes for resizing supplied here in CodeProject? to make what you want, it will be necessary a lot of code to move each control. Why not to encapsulate that operation in an easy to use class?
If you want to know how it is done, just study the classes. They are easy to understand.
Jaime
|
|
|
|
|
Thanks for the advice Jaime.
|
|
|
|
|
I'm using VC4.2 (for specific reasons, so dont tell me to upgrade)
Some how I cant add breakpoints. I've deleted the ncb file and all obj/lib etc files.
Every time I set a breakpoint and hit run, it disables them. This happens w/ my debug and release version. I have 'generate debug info' set in my project settings.
Any ideas??
-C
|
|
|
|
|
hm.. this hapens when I try to set a breakpoint
in a cpp file, that belong to a DLL, which is loaded from the main programm..
try this:
_asm int 3;
but now you can only start with debuger attached
on the proccess.
|
|
|
|
|
I dont understand how this helps.
I'm creating a DLL and starting it with an exe. I want to stop and step through from a certain point. How does this help setting and steppin through code?
|
|
|
|
|
as I thought.
just put the
_asm int 3;
in the code, where you want the
debuger to stop. but you MUST start
the programm with a debuger. if not, an exception
is thrown.
the debuger stops at this assembly code.
|
|
|
|
|
What kind of DLL is it? I cannot debug inside a DLL when it is a COM server... if it is an extension DLL, I can do it the normal way.
Try the suggestion of using __asm int 3. The causes the processor to break its execution at that point.
Jaime
|
|
|
|
|
Using __asm int 3 would be useful if i knew assembler.
This all used to work, but now it doesnt. My project is a DLL and the exe that loads it doesnt ahve a symbol table, but this used to work.
Any other suggestions?
|
|
|
|
|
by using __asm int 3 it isn't necessary to know assembler since you will see pure C code if the DLL has been compiled with symbol table.
You told that the EXE that loads the DLL doesn't have a symbol table, so you need to specify it in debug settings of the DLL project.
You always have talked about a DLL, but.. what kind of DLL it is? how have you specified the EXE that loads your DLL?
Jaime
|
|
|
|
|
I have installed Win98/WindowsXP/Windows 2003
How can i retrieve boot drive in MFC
Thanking you
|
|
|
|
|
MFC couldn't care less about the "boot drive." What you want can be obtained by reading the SystemDrive environment variable, or the same-named member of the Win32_OperatingSystem WMI class. You could also call GetWindowsDirectory() and examine the first character of the returned path. Do any of those help?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
GetWindowsDirectory() API return only drive name where windows is installed.
I want to get the information for boot partition.
C:\Windows\ for 98
D:\Windows\ for XP
E:\Windows\ for 2K3
I want to get boot drive (c in winXP programatically.
Thanking you
|
|
|
|
|
But if you boot to, say, Windows XP, wouldn't GetWindowsDirectory() return d:\windows, thus making d: the boot drive?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I am working on a class that manages 2 CStatics , their creation , destruction and text data . here it is :
<br />
<small>class CTestRow {<br />
public :<br />
CTestRow(CString title,CWnd *parent,CRect r){<br />
wndTest = new CStatic;<br />
wndTest->Create(title,WS_CLIPCHILDREN|WS_CHILD|WS_VISIBLE,r,parent);<br />
wndTest->SetFont(font);<br />
<br />
r.left=r.right+10;<br />
r.right=r.left+100;<br />
<br />
wndResult = new CStatic;<br />
wndResult->Create("Untested",WS_CLIPCHILDREN|WS_CHILD|WS_VISIBLE,r,parent);<br />
result="Untested";<br />
};<br />
~CTestRow(){<br />
delete wndTest;<br />
delete wndResult;<br />
}<br />
void SetResultText()<br />
{<br />
wndResult->SetWindowText(result);<br />
<br />
};<br />
<br />
static void DestroyFont<br />
CString result;<br />
<br />
private:<br />
CStatic *wndTest;<br />
CStatic *wndResult;<br />
CString titleTest;<br />
static CFont font;<br />
<br />
<br />
</small>};
Now I am going to to creating an array of CTestRow in my application .
I want all the objects created to reference once instance of CFont . i,e i dont want Cfont to be created again and again for every object.thats why i have declared it static .
But there needs to be a point where I initialize it(CFont object) once and destroy it once when i m done with all objects !
Does C++ have the facility to do this ?
or do i need to have a wrapper class to do that ?
|
|
|
|
|
duh why did i start reading COM ?
use a static int objCount variable and when 0 Create the font
In the destructor check objCount
if 0 then destroy font.
Sorry i m, not thinking today !
|
|
|
|
|
CString strTime=CTime::GetCurrentTime().Format("%m/%d/%Y %H:%M:%S")
How to convert or assign this strTime back to another CTime object ?
|
|
|
|
|
Use COleDateTime instead, then you'll have access to ParseDateTime() , not to mention a wider range of dates.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|