|
Hi,
No i want to implement TCP/IP
like RAS but they are both Win98
Sameer
|
|
|
|
|
Well, you shoud configure one of the machines (and only one) as a RAS Server. Launch the explorer, go to the Dial-up folder and you'll find a link to the RAS Server configuration dialog in the "Connections" menu.
Once you're done with this, the client app should initiate a RAS connection with RasDial and all that stuff (you can do it non-programmatically, of course). When the connection is established, both programs can communicate with TCP/IP using the regular Winsock procedures.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
How to hide the black window that comes when u have a win32 console application. Can anyone suggest a solution for it.
Samir Sood
|
|
|
|
|
Depends on the context. If you want the console not to appear for a program you're launching from another with CreateProcess , then some of the parameters in the call allow for this.
If you're talking about a program of your own, I guess the simplest way is to change it to a Windows program --it is admissible although you don't do any GUI stuff, and no console will appear.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
But is there any method by which inside the console based application only can we make the black window disappear.
Wating for reply....
Samir Sood
|
|
|
|
|
Do you own the source code of the app for which you want the console not to appear?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hello;
I want to add a wizard in to an MFC app. What is the efficient way to do. Should i use FORMVIEW? What is the right way?
Thank you.
Orkun GEDiK
|
|
|
|
|
|
Thank you for help.
Orkun GEDiK
|
|
|
|
|
Read up on CPropertySheet. A wizard is a property sheet with some style bits set to make it a wizard.
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
|
|
|
|
|
hi everyone
I recently visited the site codeproject & went through the tutorial
on install shield. I have recently made an installation which installs
my application in VC++ & at the same time installs the InterBase Server
& console. To achieve this installation i make entries in registry & for
auto starting the interbase server i have made entry in
HKEY_LOCAL_MACHINE\Software\Microsoft\CurrentVersion\Run
as InterBaseGuardian REG_STR <root dir="">IBServer.exe -a.
The installation is done in install shield for Microsoft VC++6.
I m facing a whimiscal problem whenever i install my appliaction in a compaq
machine that already contains Interbase server as well as VC++6 installed
in it. I tested my installation in an assembled machine which already has
both the things installed, but there it doesn't show that error.
As soon as the appliation is run it first shows message box "cann't create
socket" and then it shows "XTG unable to establish connection to the host
unknown win 32 error 10106".
Is this error due to the istallation script or its related with the
application or interbase server.
Please help me out i ll be really grateful.
thanking you!
regards
a struggling software engineer
ashutosh pandey
ash_pandey@rediffmail.com
|
|
|
|
|
As the error text informs you, this is an error from the XTG component (the ODBC driver?). If you indeed were a "software engineer" you'd know that an error 10106 is a Winsock error (WSAEPROVIDERFAILEDINIT). Perhaps the ODBC DSN is wrong?
|
|
|
|
|
Mike Nordell wrote:
If you indeed were a "software engineer" you'd know that an error 10106 is a Winsock error
ooooooo harsh
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
hi everyone
I recently visited the site codeproject & went through the tutorial
on install shield. I have recently made an installation which installs
my application in VC++ & at the same time installs the InterBase Server
& console. To achieve this installation i make entries in registry & for
auto starting the interbase server i have made entry in
HKEY_LOCAL_MACHINE\Software\Microsoft\CurrentVersion\Run
as InterBaseGuardian REG_STR <root dir="">IBServer.exe -a.
The installation is done in install shield for Microsoft VC++6.
I m facing a whimiscal problem whenever i install my appliaction in a compaq
machine that already contains Interbase server as well as VC++6 installed
in it. I tested my installation in an assembled machine which already has
both the things installed, but there it doesn't show that error.
As soon as the appliation is run it first shows message box "cann't create
socket" and then it shows "XTG unable to establish connection to the host
unknown win 32 error 10106".
Is this error due to the istallation script or its related with the
application or interbase server.
Please help me out i ll be really grateful.
thanking you!
regards
a struggling software engineer
ashutosh pandey
|
|
|
|
|
Does any one know how if it is possible, and how to derive from a templatized class that specializes with a specific text string. Here is an example:
template<char* str>
class X
{
void print()
{
cout << "Your initialized Template string is: " << str << endl;
}
};
class Y : public X<"display">
{
...
};
//then instantiate and use the class like so:
Y yDisplay<"display">;
yDisplay.print();
// and here is the output
Your initialized Template string is: display
I can perform this feat with a DWORD. And I can instantiate an X type object that specializes on a text string.
//This seems to work fine.
X xObject<"hello">;
But I cannot figure out if it is possible to derive from a class that has specialized on a particular text string as a template parameter.
Thanks in advance.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
|
Thank you for the link, it has a lot of good information. However my problem is a little more difficult than that. I actually stumbled on the solution to get the string literal to work, however I still have the problem of deriving a class from a templatized class that contains a specific string literal.
Example:
Does any one know how if it is possible, and how to derive from a templatized class that specializes with a specific text string. Here is an example:
template<char* str>
class X
{
};
//Notice how this class is derived from a specialized version of X with a specific string literal.
char DISPLAY_STR[] = "display";
class Y : public X<DISPLAY_STR>
{
...
};
THis is the error that I receive as well.
'X' : template argument 'str' : invalid address of local variable 'str'
Thanks again
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
kilowatt wrote:
//Notice how this class is derived from a specialized version of X with a specific string literal.
char DISPLAY_STR[] = "display";
class Y : public X<DISPLAY_STR>
This is no string literal. "foo" is a string literal. You're trying to use a variable and that will (of course) fail miserably.
If your intention is to "hide" the real string used as a literal behind another name, your only option is to use a macro:
#define DISPLAY_STR "display"
|
|
|
|
|
Well, you have a point with my misuse of vocabulary on the problem.
However if I want to instnatiate class X with a string parameter, the method that you have suggested will not work. If you read the link that Mike Dunn posted above, you need to create a variable with external linkage in order for the template to be able to use it. Here is a summary.
#define FOO_DEFINE "foo"
X xObject1<"foo">; //will not work
X xObject2<foo_define> //will not work either, same as xObject<"foo">
char FOO_STR[] = "foo";
X xObject3<foo_str>; //THe correct way to do it.
Anyway my real problem is that I want to derive a class Y from a specialized version of X, like so:
class Y : public X<foo_str>
{
};
class Y is not a parameterized class, however it will use a special version of X.
Thanks again.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
The error message is descriptive enough. What is the linkage of DISPLAY_STR ? It has to be external for the template to work. The problem has nothing to do with deriving from X<DISPLAY_STR> : you should meet it also by simply instantiating a X<DISPLAY_STR> .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I typed up a simple version like the example that I showed you guys and got it to work, then I found tha tI had declared <const char*> instead of <char*> as the template parameter and now it works.
Thanks
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I now know that it is possible and here is how it can be done:
#include "stdafx.h"
#include <iostream>
using std::cout;
char szHello[] = "Hello ";
char szWorld[] = "World!";
template<char* str>
class X
{
public:
void print()
{
cout << str;
}
};
class Y : public X<szWorld>
{
public:
int i;
Y();
};
Y::Y () : X<szWorld>()
{
};
int main(int argc, char* argv[])
{
X<szHello> xObject;
xObject.print();
Y yObject;
yObject.print();
return 0;
} Thanks for all of your help.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I want to use the checkbox like this:
if(checkbox was clicked)
{}
else{}
how could I do ?
|
|
|
|
|
if (IsDlgButtonChecked (IDC_CHECKBOX)) {
} else {
} /ravi
Help put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Try this:
CButton * pButton = (CButton*)GetDlgItem(IDC_CHECK1);
if (pButton->GetCheck())
{
}
else
{
}
Best regards,
Eugene Pustovoyt
|
|
|
|