|
I am currently using VC2005 which provides XP style buttons by default. When I load an icon, though, the button changes to the old Office 2000 style. If all the buttons where the same style it wouldn't be a problem, but some buttons are XP style while the others are 2000.
Is there any way to change this?
Thanks!
|
|
|
|
|
AFAIK you'll have to draw the buttons yourself...
|
|
|
|
|
Hi all - I am trying to follow this Walkthrough from the msdn:
http://msdn2.microsoft.com/en-us/library/ms235628.aspx[^]
my problem is in the part where is says:
"To create a new Windows Forms control project
On the File menu, click New, and then click Project….
In the Project Types pane, select CLR in the Visual C++ node, then select Windows Forms Control Library in the Visual Studio installed templates pane.
I do not have this CLR project template... what am I missing?
I am running Visual Studio .net ver.2002, student edition.
Thanks for any info - mutty
|
|
|
|
|
I would assume this tutorial is for Visual Studio 2005 ( aka vs8 ).
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
yes, perhaps you are correct. How, then, do I create a new control using ver2002? I have been looking at various articles regarding creating custom buttons, but would like to find a 2002-era walk-through like the one posted.
Anybody help?
thanks -mutty
|
|
|
|
|
Already looked here[^] ?
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
I have used windows socket and template library and when I run the program got an exception completely stopping the program. So when I debugged the program, I observed that the address of a variable (A CPtrList Object actually) was not the orignial address, in the function where the exception occured.
Does anybody know the solution to this problem ?
|
|
|
|
|
RanjanShrestha wrote: I observed that the address of a variable (A CPtrList Object actually) was not the orignial address, in the function where the exception occured
how are you finding this address ?
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Use the watch window and enter the variable with the deferencing symbol. For Ex: &Var_Name
This shows the address of the variable in hex format 0xXXXXXXXX
|
|
|
|
|
you get an adress in hex ? how shocking !!!
seriously, are you in debug mode ? how do you know that the adress is different ?
are you certain that you break point is really set that that line of code ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Maximilien wrote: you get an adress in hex ? how shocking !!!
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
the addresses of variables may change between calls to the same function, as the program runs.
but, it wouldn't be unusual to find that your app has corrupted its stack in some way. track down those stray pointers...
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
What was the exception (access violation, division by error, illegal instruction, etc...)? Have you got a stack trace and some code from around "ground zero"? In general this is the bare minimum information required to diagnose such a fault. I also like to have the disassembly (machine code) of the code around ground zero as a bit as x86 knowledge and this information allows you to tell where in a line the fault occurred.
Steve
|
|
|
|
|
Hello there,
We just uprgraded to vc8 (aka Visual Studio 2005). Our project is very large, and it would be nice to split it up into a number of dlls to avoid compiling the whole project each time.
How do we share those dll binaries along with the debug symbols among the team? Is there any special way to do this?
Thanks,
swine
[b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
|
|
|
|
|
The most common way I have seen is to set up a common bin directory for each project/app. The debug dll's have a 'D' appended, the release dll's have an 'R' (or nothing). Copy debug symbols into bin directory too.
|
|
|
|
|
Ok, but what if you are debugging a particular dll, or you haven't committed all the code changes for it --- where does it go? You don't want to break the builds of other team members, so you can't put it into the common bin directory.
Or perhaps you can use the Tools|Options|Executable Paths or whatever to set it up to go to your local build path, and if not there, go to the shared directory?
Hmmm...
[b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
|
|
|
|
|
I have developed a very simple client server program using document/view architecture. it has a socket class derived from CAsyncSocket which has functions to handle OnConnect(), OnReceived, OnAccept() messages. When i run this program, it gives error "Unhandled Exception in th2.exe: 0xC0000005: Access Violation". Could anyone tell me how to solve it?
|
|
|
|
|
If you could only mention where actually in the code did that exception occur, it would be easier to solve your problem. [Try debugging the program and you can find out when and where the exception occurs]
|
|
|
|
|
You're probably trying to use a pointer that is either NULL or in an uninitalized state (0xcdcdcdcd).
Use the debugger to find it.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi together,
I need some help: I have an console app that must be stopped by pressing CTRL-C to allow it to shut down gracefully (including saving some data). I spawn this app by an MFC app via CreateProcess(). My problem is now, that I also want to stop it by the MFC app, i.e. send an SIGINT to the console app. But I believe that this isn't possible, is it? Does anybody has an idea how to stop my console app gracefully? TerminateProcess() unfortunately doesn't help...
Thank you very much for all your help,
Marcus.
|
|
|
|
|
If it is spawned via CreateProcess, you will get a handle on it. Can't you interact with the console window through this handle ? Send a close message or even CTRL-C keys to it ?
~RaGE();
|
|
|
|
|
I'll try if it possible to send a CTRL-C key to the console.
Thanks for the tip!
Marcus.
|
|
|
|
|
What is the best select statement I must prefer to use in c++ program, I know each one has a specific situation to be use in it ,but I mean if I’ve a program has more than one condition . and Why???
|
|
|
|
|
i think that your question is not very clear, because you should have gotten an answer already...
please reformulate it the more clearly you can...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
Thanks, TOXCCT , Maximilien Lincourt, Prakash, VuNic, codito ergo sum ,for your considerable replays, what I mean is ,if I’ve a c++ program to search for a required quantity in a store I did it by if /else statement:
cout<<"\nEnter the Required_Qauntity:\n";<br />
cin>>Required_Quantity;<br />
if(Required_Quantity > x[index][1] || Required_Quantity <=0) <br />
{cout<<"\nThe avaliable Quantity in the store is "<<x[index][1]<<" part(s). Please ,enter a suitable quantity.\n";<br />
Goto f;<br />
}<br />
else <br />
cout<<"\nThe Required_Quantity is available in the store.\n";
Is there another way to make the same seach , and which one is the best to use it?
with thanks.
deema
-- modified at 8:32 Tuesday 31st January, 2006
|
|
|
|