|
Try MultiByteToWideChar(..) .
Robert-Antonio
"What do you mean, I can't initialize things in assert()?"
|
|
|
|
|
Some how i am not to view the class view tab in my workspace. It happened when i was compiling the proj and it crashed. when i reopened it i wasnt able to view classview tab. everytime i open the workspace i get following warning:
cannot access classview information file.ClassView information will not be accessible.
What Is the solution to this problem???
|
|
|
|
|
Anonymous wrote:
Some how i am not to view the class view tab in my workspace. It happened when i was compiling the proj and it crashed. when i reopened it i wasnt able to view classview tab. everytime i open the workspace i get following warning:
cannot access classview information file.ClassView information will not be accessible.
What Is the solution to this problem???
At a guess. I'd say that the crashed MsDev process is still running. Have a look at the process list via taskmanager and kill the msdev.exe process
Michael
CP Blog [^]
|
|
|
|
|
Its a pain when u lose this info . i'd suggest that u look in the task manager and kill msdev.exe if its running . if this doesnt work go to ur project folder and delete
the .clw,.aps,.ncb files and reopen ur project . Hopefully things shld be back .
Engineering is the effort !
|
|
|
|
|
Hi
can some body give the website address for free download of VC++ books. like Beginning Atl Com Programming. it is there on net but now i have forgotten where it was.plus there is a big help file named VC6.chm which around 135 mb. can anybody give the link to download.
Thanks
Swarup
|
|
|
|
|
http://mspress.microsoft.com/
try this link
|
|
|
|
|
ftp.runnet.ru/BOOKS
Ivan Cachicatari
|
|
|
|
|
Hi,
I want to use the NDIS I/O Port functions that works in the kernel mode. If any one can provide me with a working example it will be great.
Thanks
|
|
|
|
|
What exactly are you looking for?
Don't try it, just do it!
|
|
|
|
|
I'm looking for a ready made code that send and recieve data using the NDIS I/O port functions
|
|
|
|
|
I was away from net for a week; checked today and found remarks from ur fans well, I did't mean any thing by that title of thread, simply typed without any anything;
perhaps an on forum sorry is needed.
sorry
kriaz
|
|
|
|
|
No apology is necessary. I guess your post could have been interpreted two different ways, but I did not take any offense by it. Carry on.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
How can I disable a Editbox from one dialog to another dialog where tha editbox is?.
|
|
|
|
|
if dialog1 is the class where the edit box is and dialog2 is the class where u r going to disable the dialog box, then
in dialog1----
dialog2 *d2;
d2->editbox.EnableWindow(FALSE);
|
|
|
|
|
No the editbox is on dialog2 and I want to diable from dialog1
|
|
|
|
|
that's what he wrote...
to add to that, you need to have a pointer to dialog2 in your dialog1.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I have that but it don't work for me.
// Try to run this from dialog1
CEdit *EditDis; // Dialog2
EditDis->m_Company.EnableWindow(FALSE); // m_Company is EDIT1
The EnableWindow is NOT something I can use,
I do not have it. What Im I doing wrong?
|
|
|
|
|
Larsson wrote:
CEdit *EditDis; // Dialog2
EditDis->m_Company.EnableWindow(FALSE); // m_Company is EDIT1
This code makes no sense. If EditDis is an edit control, there is no (logical) way that m_Company can also be an edit control.
Based on the little bit of information you've provided, here's my take:
void Dialog2::SomeFunction( void )
{
Dialog1 dlg(this);
dlg.DoModal();
}
class Dialog1 : public CDialog
{
Dialog1(Dialog2 *pDialog2, CWnd *pParent );
Dialog2 *m_pDialog2;
};
Dialog1::Dialog1(Dialog2 *pDialog2, CWnd *pParent )
{
m_pDialog2 = pDialog2;
}
void Dialog1::SomeFunction( void )
{
m_pDialog2->m_Company.EnableWindow(FALSE);
}
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi all,
I have downloaded the code for C++ Wrapper classes for the COM interfaces of Microsoft XML parser (MSXML) from CodeProject at http://www.codeproject.com/soap/msxmlcpp.asp?df=100&forumid=3092&exp=0&select=911139&msg=911139. I tried to compile the demo project, but I keep getting the error c:\Dev\Samples\XML\XMLWrapper\Source\InterfaceWrapper.h(274): error C2491: 'CInterfaceCallingWrapper<T>::__ctor' : definition of dllimport function not allowed. This is at the following code:
template<class T>
CInterfaceCallingWrapper<T>::CInterfaceCallingWrapper()
{}
There are several others of this type too.
I am using MSDev 7.1 (Visual Studio .net Professional 2003).
The error code description in MSDN is as follows:
---------- ERROR DESCRIPTION ----------
Data, static data members, and functions can be declared as dllimports but not defined as dllimports. The following sample generates C2491:
// C2491.cpp
// function definition
void __declspec(dllimport) funcB() { // C2491
}
// function declaration
void __declspec(dllimport) funcB(); // ok
int main() {
}
---------- END DESCRIPTION ----------
As you can see, the error points to a line in the code that in no way declares a dllimport/export at a definition of the constructor involved.
How can I fix this?
Thanks!
----------------------
William Dicks
|
|
|
|
|
I've just compiled the demos provided with the article and everything works OK Seems like you're not properly setting the project to generate a DLL. Make sure the macros _AFXDLL and _AFXEXT are defined. This should suffice.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Actually, I did compile the DLL. That was no problem. When I wanted to build DOMXMLDemo I got the error mentioned in my previous message. DOMXMLDemo can be found in http://www.codeproject.com/soap/msxmlcpp/msxmlcpp_demo.zip.
Thanks for your reply!
----------------------
William Dicks
|
|
|
|
|
Ummm... I've had no problems with MSVC++ 6.0, so I guess this is 7.1-specific.
Having a look at InterfaceWrpper.h , seems like it is defining functions
that are meant to be imported. You can try one (and only one of the following):Hope this helps, good luck.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I managed to maximize it in the CApp InitInstance() by passing SW_SHOWMAXIMIZED instead of SW_SHOW
BUT...
the window is shown normal first for a second then go maximixed.
I want it to be shown maximized from the very begining.
So...
in the PreCreateWindow() of the frame window I add the following line
cs.style |= WS_MAXIMIZE;
but didn't work..
the question is why didn't it work and how to make it work?
|
|
|
|
|
Hi!
If I have the following “C:\textfile.txt” with contents:
---------------
Hi there.
This dog is blue and his ID: 1234. BlaBla…
---------------
and would traverse it and find “ID:” and change “1234” to for e.g. “56” so the file would look like:
---------------
Hi there.
This dog is blue and his ID: 45. BlaBla…
---------------
I’m programming VC++ and MFC. Any tips of how I could tackle my problem.
Thanks - Anders
_____________________________
...and justice for all
APe
|
|
|
|
|
Something like:
CFile file1("c:\\testfile.txt", CFile::modeRead),
file2("c:\\testfile.tmp", CFile::modeWrite | CFile::modeCreate);
CString strLine;
while (file1.ReadString(strLine))
{
strLine.Replace("1234", "56");
file2.WriteString(strLine);
}
file1.Close();
file2.Close();
CFile::Remove("c:\\textfile.txt");
CFile::Rename("c:\\testfile.tmp", "c:\\testfile.txt");
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|