|
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
|
|
|
|
|
Perfect!!
Exactly what I wanted!
_____________________________
...and justice for all
APe
|
|
|
|
|
How to check whether another exe is running or not from our application???
aparajita
|
|
|
|
|
check in the task manager
|
|
|
|
|
Check out Process32First() and Process32Next() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
HI ,
I want to write a Generic DLL means ASP , VC++ , VB
all can use it ,
what is the way to write it. how? any sample
thanx
Regards.
|
|
|
|
|
what about browsing the cp articles about dlls?
Don't try it, just do it!
|
|
|
|
|
Hi, everyone:
Have any example about BBS color ansi code to html?
Thanks!
|
|
|
|
|
HI,
I want to check that where is the a purticuler folder
how can i chk it.
some one said use SHGetFolderPath().
will search for ir .
if a have 40GB harddisk , it will take alot of time
any easy solution
thanx
Regards.
|
|
|
|
|
zahid_ash wrote:
I want to check...
"Check" is a very ambiguous term. Do you want to check it for existence, integrity, content, or something completely different?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|