|
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?
|
|
|
|
|
|
Hi,
I have tried looking at the examples available here but they don't seem to work for me. I have a SDI project on the go and I have a drawing window on the top right corner that I would like refreshed periodically. I want to double buffer it and this is what I have so far in my CDoubleBufferView::OnPaint()
CRect tempRect;
GetClientRect(tempRect); //rect of the window
CPaintDC dc(this);
CBitmap bitmap;
CDC dcMem;
if(m_isDoubleBuffered)
{
if( dcMem.CreateCompatibleDC( &dc ) ) {
bitmap.CreateCompatibleBitmap(&dc, tempRect.Width(), tempRect.Height() );
CBitmap* pOldBitmap = dcMem.SelectObject(&bitmap);
dcMem.FillSolidRect(tempRect, dc.GetBkColor());
Draw(dcMem);
dc.BitBlt( tempRect.left,
tempRect.top,
tempRect.Width(),
tempRect.Height(),
&dcMem,
tempRect.left,
tempRect.top,
SRCCOPY );
dc.SetTextColor(RGB(255, 255, 255));
dc.SetBkMode(TRANSPARENT);
dc.SetTextAlign(TA_LEFT | TA_TOP);
dc.TextOut(m_dwTopLeft.x, m_dwTopLeft.y, "Double Buffer");
}
}
else
{
Draw(dc);
dc.SetTextColor(RGB(255, 255, 255));
dc.SetBkMode(TRANSPARENT);
dc.SetTextAlign(TA_LEFT | TA_TOP);
dc.TextOut(m_dwTopLeft.x, m_dwTopLeft.y, "No Double Buffer");
}
I do not see any difference in either mode. Did I miss something. Btw, I am still new with MFC, thus if a more detailed explanation can be provided, it would be greatly appreciated. Thanks in advance.
|
|
|
|
|
Not the answer your looking, but just as effective and only like 2 lines of code.
Why don't you use Keith Rules CMemDC ...it's sweet
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
I've got to Dialogs (DialogA & DialogB). DialogA has an edit box which I want to write to. DialogB consists of a few BUTTONS, when the user clicks one of these buttons I need a message to appear in the edit box of DialogA. Would some detail how this might be done using the following APIs
GetDlgItemText
SetDlgItemText
Kind Regards
Caoimh
|
|
|
|
|
Very simple, get the pointer of dialogA in dialogB, then in the eventhandler of the button in dialogB do the following
pDlg1->SetDlgItemText(IDC_XXX,"Text");
I have lost more blood shaving than on the battlefield - Adolf Hitler
|
|
|
|
|
Hi !
I'm thinking about buying Visual Studio .NET.
I've heard and read many things regarding .NET and the need for the people using my application to have the CRT if it's not already installed on their machine.
My question is : is this true only for C# applications ? If I'm developping an app in C++ with .NET, will I get a executable which won't need the CRT ? Will my app work for example on Win98 ?
Since which version of Windows is the CRT automatically installed ?
Thanks for your infos,
Jerome
|
|
|
|
|
Visual C++ in VS.NET is the only tool that will generate native Win32 code. Therefore you don't need to distribute the .NET runtime (unless you use the .NET managed C++ classes)
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Hi !
I'm having a problem wih the autolist member option.
Me and my coworkers are working on the same projet. I have on my disk a visual studio workspace, which includes 4 projects. My coworkers have _exactly_ the same configuration.
My problem : I want to have the autolist member when I type a class name, which is a class from the other project in the same workspace.
It works for my coworkers (the list of member variables and methods) appears in the text editor, but not with me.
I checked the options of Visual Studio and autolist member option is set.
Could anyone tell me what's wrong with my configuration ?
Thanks !
Jerome
|
|
|
|
|
There is nothing wrong in the configurarion, it is due to currupt .opt .clw files in your workspace directory...
Try deleting the .opt file (after closing ur workspace) and then load ur workspace in the visual studio.
I have lost more blood shaving than on the battlefield - Adolf Hitler
|
|
|
|
|
Hi!
Is there any easy way to make your application to be multilanguage? What can be used for it? I want to let the user choose if he or she wants english french or german....
Well... I am a beginner ...
|
|
|
|