|
Borland does not support managed C++.
There are, however, a number of articles on this site about printing that should point you in the right direction. The network printer thing is irrelevant, the driversd hide that detail from your code.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
i want to save my data from SQL database to XLS file, i.e. row by row, how can i proceed on this
nishant
|
|
|
|
|
This has nothing to do with MFC and, I suspect, nothing to do with managed C++.
First of all, you need to read your data from your database ( do you mean SQL Server, or just a db that supports SQL ( all of them ) ? ). then you need to load Excel as a COM object and control it to push the data into a sheet and save it. There's plenty of info on the latter on the web, and probably more info on the former, given that it's a realitively elementary task. Try the C++ forum, and try google.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
this is a two part question. Are overloaded operators inherited? can someone give me an example using managed c++ for the plus and minus operators?
|
|
|
|
|
1. Yes, I reckon they are
2. I doubt managed extensions make any changes to the standard implimentation found in most C++ textbooks and online.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
since i can inherit overloaded operators could you give me an example using the plus operator?
|
|
|
|
|
|
I searched through many of the "chat" programs provided on this site, but could not find any that were simple enough, and a lot even used a windows interface. What I want to know how to do, is to make a simple server and a client using a terminal window. All I basically want it to do is this:
SERVER::
>Runs on a hardcoded ip adress and port (for simplicity) and can handle multiple clients.
>Also, needs to somehow keep track of the IP+ports of the users who are logged on. (maybe a string array would work well)
CLIENT::
>Whenever you run the Client, it connects to the hardcoded IP+port.
>As soon as you logon, the server sends you some simple message like "Hello"
>Then, you put in the nickname you want to use.
>Then you enter the chat room, and whatever you type in, the server sends to all the other Clients. like this "MyName> hello chat clients"
Also, if you could, please keep this to as few includes as possible, as far as I can tell, you really only need <iostream>or<stdio> and "winsock2.h". Also, please keep it to standard datatypes (int char string etc.)
Thank you for helping me with this project.
|
|
|
|
|
So basically you don't want anything too fancy, or your teacher will know you didn't do your homework ? Nice try. Given that you've asked in the wrong forum ( or are you learning Managed C++ ? ), I guess you're not the most attentive guy, which probably accounts for your not being able to do your own homework.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
check out "Network Development Kit 2" which can be found on this site.
|
|
|
|
|
Wow Christian...why would I even be in a class where I would program a server. Anyway, this is just for my own use, and the simplicity is just for easier understanding.
|
|
|
|
|
Hey Aaron, can I please have the link to the Network Development Kit 2.
|
|
|
|
|
|
|
A funny thing is that a wizard created that app. Doesnt anyone do it manually anymore? Another problem, is that the only thing that could probably compile it is VC++, which is pretty lame.
|
|
|
|
|
sure a wizard created the app but not the underlying code. Check the source code for the app and you will see that the sdk is not wizard created.
|
|
|
|
|
;P;)
|
|
|
|
|
Ok, I am writing an xbox program that recieves a list of items from a PC application through a UDP socket connection. Each item of the list is sent separately. I have created this thread that constantly listens for the list. The problem is that when the list is longer than around 120 items I get this error: "[XONLINE] udpWarn: [D00212C8] Receive buffer is full (16466 bytes). UDP packet plus 3 data bytes lost." I know that UDP is not very reliable but when the list is say 100 items I have never had it drop a packet.
<br />
#define MAXBUFLEN 1000<br />
DWORD __stdcall ListenerThread( void* listen )<br />
{<br />
WSADATA WsaData;<br />
int iResult = WSAStartup( MAKEWORD(2,2), &WsaData );<br />
if( iResult != NO_ERROR )<br />
Debug("Error at WSAStartup");<br />
<br />
int sockfd;<br />
struct sockaddr_in my_addr;
struct sockaddr_in their_addr;
int addr_len, numbytes;<br />
<br />
if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1)<br />
Debug("Socket Creation Error");<br />
<br />
my_addr.sin_family = AF_INET;
my_addr.sin_port = htons(8604);
my_addr.sin_addr.s_addr = INADDR_ANY;
memset(&(my_addr.sin_zero), '\0', 8);
<br />
if (bind(sockfd, (struct sockaddr *)&my_addr, sizeof(struct sockaddr)) == -1)<br />
Debug("Bind Error");<br />
<br />
addr_len = sizeof(struct sockaddr);<br />
char* xrec = (char*)malloc(MAXBUFLEN);<br />
while(true)<br />
{<br />
if ((numbytes=recvfrom(sockfd, xrec, MAXBUFLEN-1, 0, (struct sockaddr *)&their_addr, &addr_len)) == -1)<br />
Debug("Recieve Error");<br />
xrec[numbytes] = '\0';<br />
}<br />
<br />
return 0;<br />
}<br />
|
|
|
|
|
Well, after several days of trying to figure this out I have come to realize that this code is just fine. The problem was the default buffer size on the xbox. I hope someone can at least find this useful. The paramater: cfgSockDefaultRecvBufsizeInK was the problem because by default it is set to 16K so I upped it to 64 just to be safe. Now everything works well.
|
|
|
|
|
Hi people i need some help on creating Digital Circuit
1st: How to implement the logic Results of the truth table of each gate using MFC/C++ programming.
Any demo sample codes would be helpful thanks
|
|
|
|
|
With logic operators. Are you using managed C++, or asking in the wrong forum ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
No i am using C++ combining with MFC Programming, i do not know whether this is a managed C++ thingy.
Jingpo
|
|
|
|
|
Then why are you asking in the managed C++ forum ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
How can I dock a form on a desktop (like taskbar)? I ve tried with the Dock property but nothing happens.
--Nikola--
modified 7-Dec-20 21:01pm.
|
|
|
|
|
Try in the C++ forum.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|