|
I didn't get what u mean by."Read the last section of this article"
Last section of which article shud i read ?
Can u please help me out.
|
|
|
|
|
Oops! 'this' - word is hyperlinked to the article
Sorry for my wrong assumption.!!
|
|
|
|
|
hi, im new in c++ is it posible to print colored lines in console??
thanks
u think u r so unique,
u think u have it all,
Deep down inside u r weak,
I'll shake and make u fall!
|
|
|
|
|
Hello,
SetConsoleTextAttribute function use to change the background or foreground color attribute.
With Regards,
R.Selvam
|
|
|
|
|
hi everyone,
does anyone know how to get the associated icon with this function? i need to extract the icon and put in a popup menu, so i don't quite realize how to do it, because i get an HICON and i need a CBitmap? i've tried the MSDN stuff, but nothing appears on the menu...?
any ideas would be appreciated
t1
---
kick ash.
http://sprdsoft.bigmoron.com
http://t1tan.cjb.net
|
|
|
|
|
Hello Folks!
I've tried without success to put text and bitmap in the same line inside a RichEdit control. Until now I get only the bitmap or only the text. There's a way to do that (using MFC, or not) ?
Thanks for any reply.
__________
Chulips
|
|
|
|
|
|
If I have a text file as below, I want to modify the line 3 "This is a test line3" to "Line changed.
What is the best way to do that beside creating a new file?
--------- text file -------------
This is a test line1
This is a test line2
This is a test line3
This is a test line4
This is a test line 5
----------------------------------
|
|
|
|
|
Well, if you absolutely cannot create a new file, you can read in each line of the file to an array or list object. Skip the line that needs changed. Insert text that represents the changed line. Continue reading the remaining lines from the file. Now write the entire data structure back out to the file. Make sense?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
May this helps u
http://www.codeproject.com/file/crotarylog.asp#xx726324xx
|
|
|
|
|
Hello,
use CStdioFile ReadString function and store the CStringArray .
With Regards,
R.Selvam
|
|
|
|
|
Hello,
I'm trying to map a network drive, but it seems not to appear anything in the MSDN, does anybody know how do I have to do it?
PS:
I'm doing it from the system account before starting a session and from XYNTService (you can find it here in CP).
Thank you in advance.
|
|
|
|
|
Joan Murt wrote:
I'm trying to map a network drive, but it seems not to appear anything in the MSDN, does anybody know how do I have to do it?
How about NetUseAdd() ?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
|
Hello,
I have an application that will need to open multiple dialogs at run time. But I have a problem. I open ONE dialog from the main frame by triggering on a menu option that the user selects. As long as the dialog window exists, I cant go back to the main frame to make other selections. Seems I have to close the dialog to go back to main frame selections. Can any one tell me what I need to do to fix the problem?
Jerry
|
|
|
|
|
You should call Create(...) instead of DoModal()
|
|
|
|
|
You are correct...I use DoModal(). But I am not sure how to replace it with Creat(...), do you have a small sample of code.
Thanks I appreciate it.
Jerry
|
|
|
|
|
|
Hiim very new to programming and i am trying to do my first program! can somebody help me telling me howto write a autorun.exe, what do i need?
Regards!
|
|
|
|
|
search a registry class work from this side and create a key with the name of your choice under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run and use the path to your .exe as value.
|
|
|
|
|
okey..........can u explain to me what did u sed? remember im like a litle boy that is watching for the first time out the window .......... so many infotmation and dont know where to start from.....
|
|
|
|
|
So I have an exe and it's linked to a DLL. Wow!
Exe code declares CString local variable and passes it to a function in the DLL.
That function assigns a new longer value.
So CString grows the buffer to put the new value in. Right?
This is in DLL.
But when CString code tries to delete old buffer
I get message box with
"user breakpoint... at 0x077f75a58"
and
ASSERT(_CrtIsValidHeapPointer(pUserData)) fires up.
I read something about _CrtIsValidHeapPointer and it says that each DLL can have it's own heap.
So how do I get around this?
Urgent! Please!
Thanks a lot!
|
|
|
|
|
In general, you can not pass allocated objects between DLLs and EXEs unless they share the same allocation routines. This would be done by linking against the RTL version of the C libraries.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Ok. Could you give a little more detail?
I'm a little confused.
What exactly do you mean by "linking against the RTL version of the C libraries"?
This is MFC CString class that I'm thinking using the same alloc routines.
How do I do this linking against the RTL version of the C libraries?
|
|
|
|
|