|
yes,
i use visual c/c++.net2005 (coded a build booster to speed it up).
The whole project is build with make_master.bat wich calls various makefiles.
I can also load it in dev studio and build but this is slow...
it takes 20 minits on my amd64 1gb ram to build soldner.
the c/c++ code calls python,xml (mixed.....)
Its real spagetti code....
And we have lots of fun!
i wish i had some more c/c++ college`s
anyone voluteering?
|
|
|
|
|
Only 20 minutes? You are lucky. Our product takes 2 HOURS to build. And that is on damn fast machines (2.8 Ghz or faster).
1179 CPP files
628 C files
2175 H files
186 DSW (Project) files
No shirt, no shoes, no brains, no service.
|
|
|
|
|
i wrote a build booster, coz as usual Micro$oft doesn`t tae in account that i use a 1Ghz++ pc.
Its just verry simple: create 2 structs:
process_info and startup_info
void RunProgram(char * path,char * appname="tryme.bat")
{... u know how it works...
}
Set thread priority to what u think is safe
And call a Make_master.bat or Make_label.bat so each process that gets called from those bats... will run at high priority.
its a lame way to boost compiling speeds.... But hey i am a friend of simple solutions
|
|
|
|
|
Can anyone tell me whether CopyFile APIs of win32, calls NtCreateFile native API for its internal implementation or not? and if yes, how can both of these calls can be related to each other, i mean looking at NtCreateFile and CopyFile API's it it possible to identify which NtCreateFile is called due to CopyFile?
Regards
Abhinav
HCL Technologies, Noida(India)
|
|
|
|
|
I would assume that CopyFileW would call CopyFileExW which would call CreateFileW which would call NtCreateFile. CopyFile/CreateFile etc are Win32 User APIs (kernel32.dll), while the NtCreateFile would be a lower level system API (ntdll.dll).
|
|
|
|
|
I have successfully implemented sending a fax into our software but I'm having a problem retrieving the status. When I submit a fax (FaxStartPrintJob), I get back a job number. The first number was 1, and it's always going up by 1 each time I send. Seems fine. If I call GetFaxJob though for any of those IDs, I get an invalid parameter error. If I go into the fax console and look at the properties on a fax, it displays JobID's like 0x0201c5fa84b842a6 which are way to big for a DWORD. Here's the code in case I did something wrong. Are the job id's in the fax console right or should they be 1,2,3... like the ones I got when submitting the fax?
HANDLE hFaxServer;<br />
PFAX_JOB_ENTRY pFJE;<br />
<br />
if (!FaxConnectFaxServer("", &hFaxServer))<br />
{<br />
writeOutputString("MSFax - Unable To Connect To Server\n");<br />
return;<br />
}<br />
<br />
if (FaxGetJob(hFaxServer, nJobID, &pFJE))<br />
{<br />
}
Thanks,
Sean Capstick
|
|
|
|
|
Why don't you try calling FaxEnumJobs and compare the information in the queue with those you already submitted. Maybe you cna see how the jobs get numbered.
No shirt, no shoes, no brains, no service.
|
|
|
|
|
Hi
Is there a way to detect when windows receives a new ip-address from a DNS, or even better, hook the actual call to the DNS?
I've gone through windows hooks and messages, but without any luck.
tia
/Niklas
|
|
|
|
|
|
Is this for a normal app or a service.
Services can specify: SERVICE_ACCEPT_NETBINDCHANGE, SERVICE_ACCEPT_HARDWAREPROFILECHANGE.
This allows them to receive: SERVICE_CONTROL_NETBINDADD, SERVICE_CONTROL_NETBINDREMOVE, SERVICE_CONTROL_NETBINDENABLE, SERVICE_CONTROL_NETBINDDISABLE, SERVICE_CONTROL_HARDWAREPROFILECHANGE.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
Hello guys,
I have next strange situation :
I have built my project in "Release" mode . Before I was building it in "Debug" mode always , next thing happens : When I move the mouse over some buttons the default(arrow) cursor dissapears and then when mouse leaves the buttons client area it appears again.
I am using Owner Drawn buttons and the thing that mourns me is that this does not happen in "Debug" mode.
Has anybody experienced similar problem ? What can be causing this ?
The problem is also that I can not find the common thing between the buttons to which this happens in order to find out what the problem is.
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
hi guys
Do you know any soft. that can search this board for previous messages. Searching this board right from desktop without IE will be a nice idea.;)
|
|
|
|
|
What's wrong with this? It works well for me.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
|
The CodeProject SearchBar[^]
wow nice app.
thanks a lot for informing me.
|
|
|
|
|
Hello,
i have currently a problem. I can't find out where I can set the Infos for my C++ Exe. My goal is to include copyright infos, a version numer and so on in the Exe. But i don't find any infos where to setup these data.
I use the new Visual Studio 2005 Environment. And i'm making an unmanaged program, because of that i can't use attributes like in managed apps.
Anybody an idea?
thx
georg
-- modified at 9:45 Wednesday 14th December, 2005
|
|
|
|
|
if you don't have a resource file, create one and add it to the project. then add a 'Version' resource, and set all your info in there.
|
|
|
|
|
thank you
it's working
-- modified at 15:31 Wednesday 14th December, 2005
|
|
|
|
|
Dear Members,
I need to color a button using ATL, WTL or WIN 32 API..
I can easily do it using MFC but because of the Application requirement
I have to do it by using the above mentioned technologies only.
Kindly help me out by sending tips and useful codes.
Regards,
Mayank Srivastava
|
|
|
|
|
|
The source code to MFC is provided for this very reason. This is one of the very reasons why I consider it important to learn the Win32 API first before using MFC. I suspect the answer lies in the WM_CTLCOLORBTN message.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
srimayank11_codeproject wrote: Kindly help me out by sending tips and useful codes.
Using Buttons (Windows Explorer and Controls)[^]
"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
|
|
|
|
|
Hi,
I am moving from C# to VC++ to test to see if it will meet my timing requirements.
I am not familiar with VC++.
I want to add an ActiveX control that fills a dialog box. So the size of the control will always match the size of the dialog when it is resized. This is easily done in C# .NET using the Anchor property.
How can I do this in VC++? Can it be done by setting properties or do I have to create extra code to achive this?
By the way I am using Visual Studio 2003 to create my code for an MFC application.
Thanks,
Liam
|
|
|
|
|
I think you will need to handle the WM_SIZE message:
void CTheDialog::OnSize(...)<br />
{<br />
CRect rect;<br />
GetClientRect(&rect);<br />
m_Control.MoveWindow(&rect);<br />
}
Now the control will completely occupy the client area of the dialog.
this is this.
|
|
|
|
|
Khan++, thanks for the reply this worked for a while now it is failing an assertion:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\src\mfc\winocc.cpp
void CWnd::MoveWindow(int x, int y, int nWidth, int nHeight, BOOL bRepaint)
{
ASSERT(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL));
...
Can you explain why this is?
Also I would like to be able to have a fixed offset from a border. Can this be done easily.
Thanks
|
|
|
|