|
Hi
All
I have developed project in VC++ 6.0 but now i want to migrate it to VC++.Net so what are steps i needed to follow to run project in VC++ .Net.
Regards
Atool
Atool
|
|
|
|
|
When you want to open a old project on the vs2005 it says do you want to get backup and also you can see steps convert and a reposrt of convert
|
|
|
|
|
You want to convert it to the managed version? or convert it to 7.1, 8.0 unmanaged compiler version?
Dario: How is "directory" in French? (I mean a file system directory).
John Simmons: "zee file holdaire thingie"
|
|
|
|
|
1. Load the .dsw file in VC7 or 8 (whichever you have)
2. Build
3. Fix any compiler errors - you'll likely have some since the compilers in 7 and 8 have much better standard compliance.
|
|
|
|
|
Hi i Have written a project in mfc/c++ in vc.net 2005 compiler but cannot make setup for it. As far as i know we have Install shield in vc6 to make the mfc setup but can't find such in vc.net .
I will be grateful to be answered
|
|
|
|
|
|
Hi,
How i can get cooridinates and size of area on IE window where IE display html pages ?
I was try IWebBrowser2->getTop,getLeft,getWidht,getHeight but it's returns values for entire IE window.
How i can get same but only for area (MSHTML ??) where IE render and show web page ?
Thanx for help !
|
|
|
|
|
You could try it with FindWindow() using "Internet Explorer_Server" as the class name and the title of the page as the window name.
|
|
|
|
|
WalderMort wrote: You could try it with FindWindow() using "Internet Explorer_Server"
i think he should find for window with class name "IEFrame" cause its the top level window and "Internet Explorer_Server" is a child of that. Right?
nave
|
|
|
|
|
possibly, it was just a suggestion. However in IE7 the IEFrame class will contain tabbed windows, so either way the code would have to account for different versions and pages.
|
|
|
|
|
amsdev wrote: How i can get cooridinates and size of area on IE window where IE display html pages
u can get the handle of the main window using the get_HWND() function. Now enumerate the child windows, using EnumChildWindows or GetWindow function. Check the clas name of the window is "Internet Explorer_Server". You can get class name using function GetClassName(). If the class name matches, Use GetWindowRect to get the coordinates.
nave
|
|
|
|
|
Hi experts
I write a recursive program to read entries from a file .
First i take 512 entries in a buffer then i read them .
But after reading app. 1000 of entreis the "new" operator does not allocate memory to buffer. It display a exception
"Unhandled exception at 0x7c90eddc in PST_OFFICE97.exe: 0xC0000005: Access violation writing location 0x00030f18."
when i look at 0x00030f18 it shows bytes filled with highlighted "?".
what is the problem ?
|
|
|
|
|
You need to post some code
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
BOOL Message::TableofOffset_Index_Pointer(DWORD dwOffsetOfTable)
{
cout<<hex<<dwoffsetoftable<<endl;
dword="" offset="0ul;
" bool="" flag="false;
" struct="" firsttableoffset="" *prev_table_offset="NULL;
" if(dwoffsetoftable="=0x115d5200)//0x114d9400)
" getchar();
="" if(message::readfilebyte(dwoffsetoftable,0x200))
="" memcpy(&offset,m_pbytfilebuffer+skip_bytes,4);
........
.......
.......
="" memcpy(&first_table_offset-="">st_dwTableId,m_pbytFileBuffer+i,4);
memcpy(&First_Table_Offset->st_dwUnknown,m_pbytFileBuffer+i+BytesToRead,4);
memcpy(&First_Table_Offset->st_dwOffsetOfTable,m_pbytFileBuffer+i+(BytesToRead*2),4);
i=BytesToRead*3;
........
.......
.......
dwOffset=Tmp->st_dwOffsetOfTable;
Tmp=Tmp->Next;
delete[]m_pbytFileBuffer;
m_pbytFileBuffer;
Message::TableofOffset_Index_Pointer(dwOffset);
///////calling same function
return true;
}
|
|
|
|
|
So how does the recursion end?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
How can i combine a LPCSTR with an int resulting in a LPCSTR.
E.g.
LPCSTR test = "Count = ";
int count = 5;
And I want a LPCSTR to be equal to "Count = 5".
|
|
|
|
|
The best way to do this is to use a wrapper like std::string, or CString. The C way to do this, is to use string manipulation methods. The method that gets a string from a number is sprintf. The method to combine strings is strcat.
strcat(test, sprintf("%d", count));
Here are the wrinkles:
1 - you say test is a LPCSTR. C stands for const, so it can't be changed
2 - this method does not allocate memory, test needs to have enough space allocated after the null terminator to make room for a copy of the number string.
3 - I did this inline, but that will leak memory, you need to make a copy of the string with the number, allocate memory to a new string that includes enough space for both strings, then use strcpy to copy the first one over, and strcat to copy over the second.
4 - if you're using VS2005, you'll need to use the new 'safe' versions or you will get warnings
So much easier to use C++.
ostringstream ss;
ss << "Count=" << 5;
string s= ss.str();
Something like that.
http://www.codeproject.com/vcpp/stl/ostringstream.asp[^]
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi all,
I have used Registered ActiveX Controls in VC++ 6.0 such as
Microsoft Forms 2.0 Label.
Microsoft Forms 2.0 Image.
Microsoft Forms 2.0 CheckBox etc..
In some of the systems, when i run the exe, it will not display these components.
What is the problem. Please help me.
Thanks in Advance.
|
|
|
|
|
The ActiveX controls must be registered/installed in each machine in which you will use your app.
this is the main reason why I always try to not use them. Of course some times the only solution is using some of them and installing/registering them in each computer.
Hope this helps.
|
|
|
|
|
Thank you,
May i know the DLL/OCX need to be registered for
Microsoft Forms 2.0 Label.
Microsoft Forms 2.0 Image.
Microsoft Forms 2.0 CheckBox etc..
these components?
|
|
|
|
|
MaHeSG wrote: May i know the DLL/OCX need to be registered for
FM20.DLL
nave
|
|
|
|
|
|
Dear Friends,
I hav developed an MFC application in Visual Studio 2005 my problem is that the application runs fine in my PC(which has Visual Studio 2005 installed in it).For final code release(i.e to give .exe file to somebody) i should build it in Release mode.Im not able to properly configure the Property Pages.(Though the building is succesfully in Release mode it doesnt run on other pc that doesnt hav visual tool it gives message saying that the application configuration is incorrect)
Im using the following code somewhere in the project:
#using "mscorlib.dll";
using namespcae System;
this requires to be compiled with Common language RunTime Support as: /clr and RunTime Library as /MT. This is creating some problem i think.
Please help me Im not able to properly configure the Property Pages
|
|
|
|
|
You need to install the .Net Framework v2.0 on the other computer.
|
|
|
|
|
Hello All,
I have a timer in my dialog which starts in the function and some process is done and I have called the stop timer as below.
working code:-
<br />
<br />
int OnStart(HWND hwnd)<br />
{<br />
dwLastTickCount = GetTickCount();<br />
SetTimer(hwnd, ID_ELASPED_TIMER, 25, NULL);<br />
pA->start();<br />
KillTimer(hwnd, ID_ELASPED_TIMER);<br />
return 0;<br />
}
Now the problem is timer clock is not displayed on the dialog, once the process is over the timer is displayed.
Can one please tell me how to do 2 process at a time ??? displaying the timer clock on the dialog and doing the process ??
I tried with thread as below its not working what is the error ?? what changes I have to make to thread ??
<br />
<br />
int OnStart(HWND hwnd)<br />
{<br />
HANDLE hr;<br />
hr = CreateThread(NULL,0,(unsigned long (__stdcall *)(void *))WorkerThreadProc,0,0,0);<br />
<br />
return 0;<br />
}<br />
<br />
<br />
UINT WorkerThreadProc(LPVOID Param);<br />
<br />
<br />
UINT WorkerThreadProc(LPVOID Param)<br />
{<br />
HWND hwnd;<br />
<br />
IMyA *pA;<br />
<br />
dwLastTickCount = GetTickCount();<br />
SetTimer(hwnd, ID_ELASPED_TIMER, 25, NULL);<br />
<br />
pA->start();<br />
<br />
KillTimer(hwnd, ID_ELASPED_TIMER);<br />
<br />
return true;<br />
}<br />
Thanking you,
Suresh HC.
|
|
|
|