|
You'll have to implement something called a Preprocessor. The preprocessor looks at the files before the parser ever sees them, and it writes an output file that contains all the "INCLUDE" files in the right order.
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
hi all
i want to know about the connectivity of c++ with database sql and
how can i fetch and eneter data into sql database from my front end c++
thanks all
please send me this answer in detail
hi
|
|
|
|
|
please tell me the code for this
thanks
hi
|
|
|
|
|
Maybe you'll get lucky and someone will code this for you, but I doubt it.
See here[^] for possible methods of connecting to a database.
Pick a technology and I'm sure you'll find plenty of example articles here.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
paras_s12 wrote: please send me this answer in detail
1. You have correctly posted this question in VC++ forums, which is most appropriate for this question. So dont cross post.
2. Be patience enough, give time to others to solve your query.
3. Don't go against community rule/spirit, by asking question in rude manner.
4. Finally, Read this[^] post, before posting any further questions in this forum.
|
|
|
|
|
Hello,
I have time hh::mm as string. This string can have * as wildcard .
So,
if time is 13:1*, whenever i query for the next valid time, this should be 13:10,13:11....13:19.
if time is 13:**, the next valid time should be 13:00,13:01,...13:10,13:11,......13:59.
I am finding it difficult to implement this. (in C++)can anybody help me out by suggesting some algorithm.
thanks in advance.
|
|
|
|
|
|
|
As far as I know, ordinary .NET languages do not provide a means to deterministically unload an assembly once it has been loaded by the CLR.
Does this hold true also for C++/CLI?
I would like to be able to unload assemblies for the purpose of auto-updating them while leaving the app's main assembly running. Is this possible?
While I'm at it, am I allowed to use LoadLibrary() and FreeLibrary() with a mixed-mode assembly, or must I use Assembly.Load() ?
-- modified at 20:24 Wednesday 28th March, 2007
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
LoadLibrary and FreeLibrary is used in unmanaged code. I haven't used it with C++/CLI but I believe it can be used to load native DLLs. If you want to load managed assemblies, you use Assembly.Load. However, if you want to have the freedom of loading and unloading assemblies I believe you must create an AppDomain. I have not verified this, so you need to do your own research.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Thanks, George. Info on C++/CLI seems a little hard to come by, so I guess I'll have to do some experimentation.
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
Richie308 wrote: Thanks, George. Info on C++/CLI seems a little hard to come by, so I guess I'll have to do some experimentation.
What George suggested is the only way to do what you want. You cannot directly unload an assembly without unloading all appdomains that have loaded that assembly. And if your primary appdomain has loaded the assembly, this means you cannot unload the assembly at all without exiting the application.
The way to do this is to have a secondary appdomain, load the temporary assemblies there, and when you are done just unload the secondary appdomain - this will unload all assemblies used by that appdomain that are not otherwise in use.
By the way I wouldn't call this C++/CLI specific information - this would fall under general .NET in my opinion
|
|
|
|
|
I am studying Nish's book C++/CLI in Action. In it, we learn that mixed types are not supported, but yet the book shows a wrapper for the Desktop API's that contains functions that mix native types with managed types.
For instance, some of the functions use an HDESK type alongside managed types.
So my question is, what exactly is not supported when they say "mixed types are not supported?"
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
You need to reread "4.3 Using mixed types". He said the C++/CLI compiler does not directly support mixed types. A "ref class" with a member field that is a native class is considered a mixed type. However, a pointer to a native class can be a field of a "ref class":
It is not supported here:
class NativeFoo
{
// ...
};
ref class ManagedFoo
{
NativeFoo m_foo;
};
But it is here:
ref class ManagedFoo
{
NativeFoo* m_foo;
~ManagedFoo()
{
this->!ManagedFoo();
}
!ManagedFoo()
{
delete m_foo;
}
};
However, using "NativeFoo* m_foo" does not lead to safe and reliable code since the developer is responsible for managing its resource. See http://msdn2.microsoft.com/en-us/library/aa730837(vs.80).aspx[^] for more information.
-- modified at 18:04 Tuesday 27th March, 2007
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Thanks for you post. I will study that document.
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
Can some kind soul tell me how to insert a char imediately after every occurance of another char in a string.
|
|
|
|
|
Andy H wrote: Can some kind soul tell me how to insert a char imediately after every occurance of another char in a string.
Please ask in the Visual C++ forum. This one's for C++/CLI related queries.
|
|
|
|
|
I am experiencing a rather irritating problem in a Managed C++ application I have written. I have a form that is using a custom control that I wrote in C#. The code runs correctly, however whenever the designer generates the C++ code in the ".h" file for the form it prefixes the type of my control with a "::". This causes an exception in the CodeDOM parser when I then try to use the design view of the form.
The custom control is called ImageDisplay, and it is within a namespace of ImageDisplay.
Here is the offending line of code:
this->imageDisplayFront = (gcnew ::ImageDisplay::ImageDisplay());
If I change the line to:
this->imageDisplayFront = (gcnew ImageDisplay::ImageDisplay());
Then all is well in the universe until the next time I make a change in the designer that generates code. Is there a trick I can do to keep whatever is generating this code from adding the extra "::"?
I am running Visual Studio 2005 with service pack 1.
-- modified at 9:03 Tuesday 27th March, 2007
Truly wise men don't play leap frog with Unicorns.
|
|
|
|
|
Hii guys,
i need your help in understanding the concept "Rum time code generation" .
I want to make a program which should insert some code in other running program without any re-compilation and re-link. i know this is possible. But i dont know to implement it as i am beginner to programming.
Thanks
Bhupinder Sodhi
|
|
|
|
|
Some info here[^].
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
i searched google already many times..even i found many projects related to this..but it did nt help me!!
|
|
|
|
|
Bhupinder Sodhi wrote: as i am beginner to programming.
Walk before you run, or you will always crawl.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You are right !!
but these sayings cant change my determination to solve my problem!!
please guys help me...i need to know the answer not your thoughts and sayings..
|
|
|
|
|
I think what we're saying is, if you're a beginner, you should learn the language of your choice before jumping into the most advanced topics.
Why C++/CLI ? It's the least supported .NET language, and the most complex one.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I know its tough but i just wanted to know concepts of it..because its part of my project of degree
|
|
|
|