|
I really think you need to start by reading a good book on C++ because you don't know at all what you are doing. Do you know what an array is and how to use it ? It seems not.
So, what you have to do is store each new string in a NEW position in the array, not overriding the previous values.
CString a[10];
CString b;
b = "Test";
a[0] = b;
b = "Test2";
a[1] = b;
|
|
|
|
|
I understand the question. It's "please finish my homework assignment for me?"
|
|
|
|
|
I see you need to learn the basics. I advise to try some projects out and read the docs from Microsoft.
Greetings from Germany
|
|
|
|
|
Have you considered something like:
CStringArray A;
CString B;
B = "First value";
A.Add(B);
B = "Second value";
A.Add(B);
B = "Third value";
A.Add(B);
...
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
how can i load image from c: directory and then making a resouce ID for that image using coding as
bmp.loadbitmap require resource ID of bitmap. plz help..
|
|
|
|
|
If you want to do drawing with your bitmap, use the LoadImage() function, with hinst as NULL, lpszName as the path to your bitmap, uType as IMAGE_BITMAP and fuLoad as LR_LOADFROMFILE . This will then return a HANDLE which can be used in GDI drawing functions.
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
i need resource id in some method is there anyway to create resource id while loading image .
|
|
|
|
|
As Mark said, resource ID's are for resources only. What is it that you are trying to achieve?
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
use LoadImage() with the LR_LOADFROMFILE flag.
|
|
|
|
|
using HBITMAP hbitmap = (HBITMAP)LoadImage(NULL,"D:\\a.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
but how can make resource ID of this image.
|
|
|
|
|
If you have loaded the bitmap once you havent to load it anymore.
You can make copies or use it. Read the CBitmap class in MFC.
Greetings from Germany
|
|
|
|
|
ani_ikram wrote: how can make resource ID of this image.
You can't. Only resources have resource IDs!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Dear All,
My project requirement is VC++ application need to support multilanguage.That is Im having 3 different language files(english.txt,Català.txt,Français.txt). All files having same messages but different language.I need to access all the messages throws key(ex. 1,2,3..).If i send key(1) and lanuage name means it will show the corresponding language message.
It will be much helpful to me to give some advice on this..
Thank you very much,
|
|
|
|
|
Please check Localisation[^] section of CP.
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
How can I get the ID of a thread that has created a specific window?
for clarification, see we have the handle of a window (e.g m_hWnd). Now for any reason, I'm gonna get the ID of the thread that has created this window.
Please pay attention I mean a window from another application.
Thank you masters!
modified on Friday, September 26, 2008 3:26 AM
|
|
|
|
|
Is GetCurrentThreadId of any use???
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
Thanks, but I meant a window that belongs to another application than mine!
Thank you masters!
|
|
|
|
|
What exactly do you need - Process Id or Thread Id?
modified 7-Mar-17 16:34pm.
|
|
|
|
|
|
LORD! You're an angel It really works! Thank you as much as the number of letters in my last project (It's a huge one)
Thank you masters!
|
|
|
|
|
Hi,
How to link a Regular DLL (Static) to the application?
Regards
Sairam
|
|
|
|
|
you haev to include it .lib file in your project!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
It's either a static library or a dynamic link library (dll). You don't have a static dll. So, please reformat your question properly so that it is understandable.
|
|
|
|
|
Hi,
I have one JNI shared libray which depends on a CPP library.
In my module loading CPP shared library first and loading JNI library, eventhough the dependant library is loaded JNI library tries to load CPP shared library.
Please let me know how to avoid loading an already loaded shared library ....
Thanks,
Yashu
|
|
|
|
|
Hi,
Details needed !
1) What problem are you facing if you are again loading the already loaded library.Asd i dont see any issue with that.
2) Are you loading these .dll's explicitly or implicityly i.e.using LoadLibrary or directlinking to it? As in case of explicit linking your process must have the Lib handle to call its function.
Regards,
Abhishek
Abhishek Srivastava
Technical Lead.
India.
|
|
|
|