Click here to Skip to main content
15,918,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWRITE CStdioFile Pin
shanilka2-Sep-04 4:48
shanilka2-Sep-04 4:48 
GeneralRe: WRITE CStdioFile Pin
David Crow2-Sep-04 5:07
David Crow2-Sep-04 5:07 
GeneralDIALOG BOX WITH .PNG IMAGES Pin
verma-rahul2-Sep-04 4:09
verma-rahul2-Sep-04 4:09 
GeneralRe: DIALOG BOX WITH .PNG IMAGES Pin
Antony M Kancidrowski2-Sep-04 6:18
Antony M Kancidrowski2-Sep-04 6:18 
GeneralRe: DIALOG BOX WITH .PNG IMAGES Pin
verma-rahul3-Sep-04 1:05
verma-rahul3-Sep-04 1:05 
GeneralMCP VC++ Pin
verma-rahul2-Sep-04 4:05
verma-rahul2-Sep-04 4:05 
GeneralRe: MCP VC++ Pin
David Crow2-Sep-04 5:08
David Crow2-Sep-04 5:08 
GeneralCSocket trouble Pin
El'Cachubrey2-Sep-04 3:57
El'Cachubrey2-Sep-04 3:57 
Hi all
I had a problem with MFC CSocket class.I use VisalStudio.Net
and corresponding MFC librarys from one.
My .exe application use an COM server which used this CSocket class.This pseudocode demonstrate what i try to do:

/////////////////Snippet from exe app////////////////
....
///pMySock is COM interface from my MySock.dll library
pMySock->Connect(...)
....

////////////////Snippet from MySock.dll library///////

class ATL_NO_VTABLE CMySock
{
....
CMySock::Connect(...)
{
if (m_sock.m_hSocket == INVALID_SOCKET)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
//Just try to create syncronous socket
//but failed here in Win98,see following
m_sock.Create()
....
}
}

CSocket m_sock;
}

Also in InitInstance method i invoke AfxInitSocket()
function and rather use MFC static linkage.

This code work fine in Win2000 system, but then i launch same application in Win98 m_sock.Create() failed.
And i can't catch why it happens.

Please any suggestions

THANK

GeneralRe: CSocket trouble Pin
Antony M Kancidrowski2-Sep-04 6:08
Antony M Kancidrowski2-Sep-04 6:08 
GeneralDeveloping UDP server using listbox Pin
akhtarparvez2-Sep-04 3:34
sussakhtarparvez2-Sep-04 3:34 
GeneralDetecting if a Dialog is Modal or Non-Modal (Modeless) Pin
James R. Twine2-Sep-04 3:33
James R. Twine2-Sep-04 3:33 
GeneralRe: Detecting if a Dialog is Modal or Non-Modal (Modeless) Pin
PJ Arends5-Sep-04 10:26
professionalPJ Arends5-Sep-04 10:26 
GeneralAnimated gif in VC5 Pin
walvdlz2-Sep-04 3:13
walvdlz2-Sep-04 3:13 
GeneralHeight and Width of Title ba Pin
persian_boi2-Sep-04 3:01
persian_boi2-Sep-04 3:01 
GeneralRe: Height and Width of Title ba Pin
David Crow2-Sep-04 5:12
David Crow2-Sep-04 5:12 
Generalstarting the application minimized - on system tray Pin
caykahve2-Sep-04 1:57
caykahve2-Sep-04 1:57 
GeneralRe: starting the application minimized - on system tray Pin
James R. Twine2-Sep-04 3:42
James R. Twine2-Sep-04 3:42 
GeneralRe: starting the application minimized - on system tray Pin
caykahve2-Sep-04 4:11
caykahve2-Sep-04 4:11 
GeneralRe: starting the application minimized - on system tray Pin
James R. Twine2-Sep-04 4:19
James R. Twine2-Sep-04 4:19 
GeneralMFC Multiple windows (pages) Pin
Jens Christiansen2-Sep-04 1:40
Jens Christiansen2-Sep-04 1:40 
GeneralRe: MFC Multiple windows (pages) Pin
RChin2-Sep-04 1:47
RChin2-Sep-04 1:47 
GeneralRe: MFC Multiple windows (pages) Pin
Jens Christiansen2-Sep-04 1:56
Jens Christiansen2-Sep-04 1:56 
GeneralRe: MFC Multiple windows (pages) Pin
vikramlinux2-Sep-04 2:29
vikramlinux2-Sep-04 2:29 
GeneralRe: MFC Multiple windows (pages) Pin
Jens Christiansen2-Sep-04 8:56
Jens Christiansen2-Sep-04 8:56 
GeneralRe: MFC Multiple windows (pages) Pin
David Crow2-Sep-04 2:45
David Crow2-Sep-04 2:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.