|
yes,exactly like that.Is any other way to do it.
|
|
|
|
|
That's probably about the easiest way to do it without calling the C compiler from your program, compiling the header into some DLL or something and using that from your program. Yeah, that's definitely the easiest way to do it.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
You can't do something like that without recompiling your program (which I guess you don't want to do). What you will need to do is instead load your data from a file and store it in a structure in memory.
|
|
|
|
|
yogeshs wrote: Actually i hv to update a mesh that i m creating
You are doing some 3D stuff I guess ? How are you creating your mesh ? How do you 'export' it (what the data structure you are using to store it) ?
|
|
|
|
|
yes,i m working in 3d.I m saving all my data in class and using that data but that is not working when i tried with header file then it works thats y i was asking for run time header file.
Do u have any idea to do that?
Yogesh
|
|
|
|
|
Yes, like I said earlier you have to save it in a file: either binary format or your own format. But I asked some information and you didn't provide any usefull information, so it will be difficult to help you.
I guess you don't really understand what I and Stuart are telling you about these files. Ok, let me explain you that another way: when you save a word document for instance, everything gets saved to a file and when you load the document, Word opens this document and read the information out of it. Well, you have to do something similar in your application: you load your data from the file. Thus you will need to use CFile or std::ifstream to read the file contents and store them in memory.
yogeshs wrote: Do u have any idea to do that?
Forget about that idea of runtime header, that's not something which is possible.
|
|
|
|
|
For example you have two header file: h1.h h2.h
Their contents are something like: content1 content2 respectly.
You load it at the begining of your program to two vars.
Then you can use any of them when you need.
You can also load either of them when you need, it depends on the size of the header files and other things.
Hope it helps.
|
|
|
|
|
Hi All
How can i Zip folder through code?I have folder A which size is 30MB .How can i compress folder a through code?Plz help me
|
|
|
|
|
|
Thanks for reply.i go through this but it's showing to many error.Ca you give some more idia.
|
|
|
|
|
Davitor wrote: Thanks for reply.i go through this but it's showing to many error.Ca you give some more idia.
Do you feel the need to tell 'what' errors?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
What were errors?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
|
Hi,
Can anyone help with using Smart card and winscard.lib in embedded visual c++ (WinCE 5.0).
I am trying to establish context with the smart card resource manager using the following sample code from MSDN.
// Establish the context.
lReturn = SCardEstablishContext(SCARD_SCOPE_USER,
NULL,
NULL,
&hSC);
if ( SCARD_S_SUCCESS != lReturn )
{
-
-
}
else
{
// Use the context as needed. When done,
// free the context by calling SCardReleaseContext.
// ...
}
However, I get the following compiler error:
error LNK2019:: Unresolved external symbol 'SCardEstablishContext ...'.
fatal error: 1 unresolved external(s).
I have included the header file, ie
#include "winscard.h"
and add in the linker option to link the library, ie
Project>>Settings>>SettingsFor (AllConfiguration)>>Input>>Object/LibraryModules
Below this there is an edit box where i specified
winscard.lib
I also gave the path where this library is present in the "Additional library path:" option
"C:\Documents and Settings\Desktop\Sample
the library is present in the sample folder in the desktop
but I still get the error.
Can someone please help me?
Thanks!
|
|
|
|
|
So, instead of reposting, did you check what I suggested ?
|
|
|
|
|
Yes,
That libarary works in > WINCE3.0, i am using WIN CE 5.0
|
|
|
|
|
I get the above said error when i build in the following combination
Pockect PC 2003 ;
Win32 (Win CE Emulator debug or Release) ;
Pocket PC 2003 device;
but when i chage the configuration to the following
Pockect PC 2003 ;
Win32 (Win CE Arm debug or Release) ;
Pocket PC 2003 device;
I get the following error :
winscard.lib(WINSCARD.dll) : fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
Any clue why this happens ?
Thanks !
|
|
|
|
|
How do I read a comma delimited Excel file in C++
Dercio@C++
|
|
|
|
|
Some options -
CreateFile/ReadFile
ifstream/getline
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
The search keywords would be "CSV parser C++". I prefer Google, but whatever pleases you.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
- Ask Google[^]
- Ask CodeProject - there are several articles (such as this one[^]) that talk about reading CSV files
|
|
|
|
|
I suppose you've to write some code for that.
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]
|
|
|
|
|
Here is one example. Another is to use Excel Automation.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Simple way: They are just plain text files. Use general file operations.
Complete way: Office Automation. You can find a sample in the MSDN.
|
|
|
|
|
In a particular VC++ 2005 MFC dialog, the "Question Mark button" (near Close button) shows up even after I set "Context Help" property to False.
In other dialogs the button shows up or disappears properly after setting or resetting that property.
Can somebody tell me whats wrong? or What else controls the display of that button?
Thanks.
|
|
|
|