|
Please format your code properly using the "code block" tag, it's almost unreadable. Did you define your static variable in a cpp file ?
|
|
|
|
|
and because two answers are not enough in your case, i'm repeating it to you (to be sure you got it well) :
you are supposed to post formatted relevant code only (not a huge copy/paste of an entiere file) !!!
|
|
|
|
|
toxcct wrote: you are supposed to post formatted relevant code only (not a huge copy/paste of an entiere file) !!!
Very well said. Why do some people think that someone on the internet will have the time to wade through the entire lot of code they post?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Hi All,
Can anybody tell me How to Embed a function in C Structure?
Regards
Sairam
|
|
|
|
|
a C structure is a class in C++.
if you're coding C++, then do it like you do in a regular class.
If you're coding C, no way.
|
|
|
|
|
You may embed a function pointer in a C struct .
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I need a sample application for connecting to sql server database in ATL.
Thanks..
|
|
|
|
|
Did you look at CP database section Database[^]?
Regards,
Sandip.
|
|
|
|
|
I need sample application for connecting to Sql server
|
|
|
|
|
MyView wrote: I need sample application for connecting to Sql server
Quote Selected Text
Did you check the link i gave ?
Regards,
Sandip.
|
|
|
|
|
|
MyView wrote: yes..
obviously, not.
and for obvious reasons too, we don't help lazy monkeys...
|
|
|
|
|
MyView wrote: I need sample application for connecting to Sql server
It's great that you reposted your question because I guess nobody understood it the first time. It's also nice that you took the time to look at the link that was given to you earlier
|
|
|
|
|
Hi All
I heard the term "Fiber" for the first time. What is Fiber? Where exactly it is used (any example)? Is it a good technique to use Fibers in my program? Please provide any related links
Thank you.
|
|
|
|
|
Does this help Fibers[^]
Regards,
Sandip.
|
|
|
|
|
the link answered all my questions
thank you
|
|
|
|
|
Hi,
Please help me to create 4 views using splitterwnd.
i have created 1 left pane,right pane.what to do to show 3 panes in right pane..
plz help me..
thankes in advance..
Srikadi
|
|
|
|
|
I'm working on a small application where i have a combo box and 5 check boxes.
I want to enter the data in the combo box. I can do that while entering in the data column in properties but i wish to do it while writing the code in the program. Please help me.
Secondly i want to change the color of the text of my check boxes. Please advice me how is it possible???
|
|
|
|
|
Ramtangi wrote: I want to enter the data in the combo box. I can do that while entering in the data column in properties but i wish to do it while writing the code in the program.
It never hurts to take a look at the documentation[^] you know.
|
|
|
|
|
I'm a beginner in VC++. I would prefer to know how can get a colored text for my check boxes.
|
|
|
|
|
In this case you should really learn the basics first and then start thinking about customization.
|
|
|
|
|
Hello everyone,
When I change the prototype of a function in IDL, for example, change a type of a parameter or add a new parameter, the _i.h file generated from the IDL by MIDL is updated with the change, but the actual function declaration and implementation code in ATL server is not updated with the change, correct?
So, the solution is to manually change (e.g. change a type of a parameter or add a new parameter) for the function declaration and implementation code? Or there is some automatic ways to sync the change (like when change the IDL, _i.h is changed)?
regards,
George
|
|
|
|
|
Hi, i got a question, and av strugled enough tyms tryn to have this.
you know the way when you click on a combo box's arrow at the end a small list shows again with two other arrows that enable you to scroll the small list,
i have tried make combo box without scroll bars, but this still gives me the short list, that can only be scrollled with the keyboards up down arrows.
i haven't posted my question yet, sorry for the delay..
this is it, how do i achieve those combo boxes that i see, that shows a very long list, with like 20 or 30 items.no scroll bars.
thank you in advance.
|
|
|
|
|
king'ori wrote: how do i achieve those combo boxes that i see, that shows a very long list, with like 20 or 30 items.no scroll bars.
The only solution i can think as of now is to adjust the size of list of combo box in the resource such that it will fit your long list.
Regards,
Sandip.
|
|
|
|
|
You have to make a longer drop list in the resource editor: when your control is placed, click on the arrow, and you will be able to adjust the size of the drop list (instead of the size of the control itself). Make it big enough to show the number of items you would like.
|
|
|
|