|
i want to know how to get SSL Certificate for my SSL Socket
thanx in advance
-- modified at 4:44 Tuesday 30th August, 2005
|
|
|
|
|
Hi
I will link an object of C module with a simple Win32 console application,
but became link errors. For example i have written a "void SomeFunc()" function in C module and declare it in testMain.cpp(Win32 API cpp module)as:
extern void SomeFunct(void);.
When i link this object, the result is:
1- SomeObject.obj : error LNK2005: _SomeFunc already defined in SomeObject.obj
2- testMain.obj : error LNK2001: unresolved external symbol "void __cdecl SomeFunc(void)" (?SomeFunc@@YAXXZ)
3- Debug/testMain.exe : fatal error LNK1120: 1 unresolved externals
Therefore, i try to declare it as:
extern "C" void SomeFunc(void);
When i link this object, the result is:
1- SomeObject.obj : error LNK2005: _SomeFunc already defined in SomeObject.obj
2- Debug/testMain.exe : fatal error LNK1169: one or more multiply defined symbols found
I don't know why? I will be thankful, when everybody can help me.
Best regards, Alireza
|
|
|
|
|
alireza_shokoie wrote:
1- SomeObject.obj : error LNK2005: _SomeFunc already defined in SomeObject.obj
You seem to be including SomeObject.obj twice, most likely from diferent locations.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Hai
Please tell me the different reports available in vc++.
Except using Crystal Reports.If any sample code available ,send me please.
Jeeva
|
|
|
|
|
Does anyone know a free C++ .NET complete tutorial in English or Italian? Note that I already develop with the other .NET languages...
Thanks for sugestions.
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
|
sorry...
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
hey...
i have to read a text file which looks like this..
1 sdfdf
2 dasdsad
3 fgggg
4 dfdffd
5 yhgtr
. .
. .
. .
i require to position pointer at any certain place then read the file backwards using fscanf... positioning can be done by using the index but how to read the file backwards with fscanf()...(e.g from 3 to 1)...plzz help
|
|
|
|
|
Hi,
maybe you could read forward and then turn your buffer...
Regards
We can do no great things, only small things with great love. - Mother Theresa
|
|
|
|
|
beginner..
plz explain by example how to turn the buffer
|
|
|
|
|
Hi,
the most easiest way to do this is:
#include <string>
#include <algorithm>
using namespace std;
string buffer = "hello world";
reverse(buffer.begin(), buffer.end());
Regards
We can do no great things, only small things with great love. - Mother Theresa
|
|
|
|
|
hi..
i'm writing a program that restrict user from accessing all function in microsoft word. in other word, user can only use a certain function based on their level access. Is there any way to hide the original toolbars in microsoft word and how to create new button to replace the original toolbar.
~ NiNi ~
|
|
|
|
|
Hello EveryOne,
i have design one activex control in MFC having different event.
i have problem to passing structure to event MFC.
i have created one event CallChange and i want to pass user define
structure on that event. but when i add event it only show common data
type as parameter not user define struture.
i want to use that control in VB.
plz help.
Thanx in advance.
Rajesh Kapure
|
|
|
|
|
|
|
If you have the privileges ExitWindowsEx[^]
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
|
Hello All
Is there any command in SDK / MFC on passing the file name can execute with appropriate application.
For Example command ("a.wav") should open "a.wav" file in Real Player or what user has installed / configured to open the *.WAV files.
I can use, WinExec but it needs the executable path to be passed. User can install any type of player and configure different type of file format to open in different players.
One Clue is in the Command Prompt if we type the file name it automatically finds the application to be used and opens the file. If the file extension is not mapped with any applicaiton it automatically open the "Open With" dialog box.
So I there is any command which executes the string passed as in command line it will do.
Is There any command?
Thanks for your time
Ravi
|
|
|
|
|
|
Try it:
ShellExecute(NULL,"open","a.wav",NULL,"C:\\MyFolder",SW_SHOWNORMAL);
or
ShellExecute(NULL,"open","C:\\MyFolder\\a.wav",NULL,NULL,SW_SHOWNORMAL);
|
|
|
|
|
It is working fine... Thank you all...
-Ravi
|
|
|
|
|
|
can anyone help me.
i need to change the attribute of a folder. i need to deny the write access of the computer administrator of a certain folder. can anyone help me.
if you need further inputs. please do notify me...
thanks...
regards...
"a man is not judged by his looks but by the way he acts..."
moodsey211
|
|
|
|
|
My dialog have a button and I had edit the code like below:
typedef struct
{
SOCKET Skt;
SOCKADDR_IN AddrFrom;
int nAddrFromLen;
LPVOID ParamPointer;
}SOCKETDATA;
SOCKET ServerSkt;
void CTCPTestDlg::OnBtnstart(LPVOID lParam)
{
// TODO: Add your control notification handler code here
char szMessage[300];
wsprintf(szMessage, "(ListenThread) - Starting TCP/IP Initialisations.");
// WriteSysLog(szMessage);
ServerSkt = socket ( AF_INET, SOCK_STREAM, 0 );
if ( ServerSkt == INVALID_SOCKET )
{
//wsprintf(szMessage, "(ListenThread) - socket() Error. Unable to Create Server Socket.");
//WriteSysLog(szMessage);
printf("Error!");
}
else
{
SktAddr.sin_family=AF_INET;
SktAddr.sin_port=htons(ReadPortNo("[TCP.FLDATA.SRV.COMMUNICATION]"));
SktAddr.sin_addr.s_addr=htonl(INADDR_ANY);
if ( bind ( ServerSkt, ( LPSOCKADDR ) &SktAddr, sizeof ( SktAddr ) ) == SOCKET_ERROR )
{
//wsprintf(szMessage, "(ListenThread) - bind() Error. Server Socket Binding Failure.");
//WriteSysLog(szMessage);
printf("Error!");
}
else
{
wsprintf(szMessage, "(ListenThread) - TCP/IP Socket Binding Completed Successfully.");
WriteSysLog(szMessage);
if ( listen ( ServerSkt, SOMAXCONN ) == SOCKET_ERROR )
{
//wsprintf(szMessage, "(ListenThread) - listen() Error. Server Socket Unable to Listen for Connections.");
//WriteSysLog(szMessage);
printf("Error!");
}
else
{
wsprintf(szMessage, "(ListenThread) - TCP/IP Listening Stage Completed Successfully.");
WriteSysLog(szMessage);
hThread=AfxBeginThread (AcceptThread,lParam,THREAD_PRIORITY_NORMAL);
if ( hThread == NULL )
{
//wsprintf(szMessage, "(ListenThread) - AfxBeginThread() Error. Unable to Create AcceptThread() Thread.");
//WriteSysLog(szMessage);
printf("Error!");
}
else
{
wsprintf(szMessage, "(ListenThread) - AcceptThread() Thread Spinoff Completed Successfully.");
WriteSysLog(szMessage);
return 0;
}
}
}
}
return 0;
}
After I compile, it have 9 errors occur as below:
error C2146: syntax error : missing ';' before identifier 'Skt'
error C2501: 'SOCKET' : missing storage-class or type specifiers
error C2501: 'Skt' : missing storage-class or type specifiers
error C2146: syntax error : missing ';' before identifier 'AddrFrom'
error C2501: 'SOCKADDR_IN' : missing storage-class or type specifiers
error C2501: 'AddrFrom' : missing storage-class or type specifiers
error C2146: syntax error : missing ';' before identifier 'ServerSkt'
error C2501: 'SOCKET' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found
Error executing cl.exe.
I don't know how to solve it. Can somebody tell me
-- modified at 2:43 Tuesday 30th August, 2005
|
|
|
|
|
as it's already been said, you are missing a header file to include...
you must have a #include <> before using those types (they are declared somewhere ; C++ need those declarations before their use).
TOXCCT >>> GEII power [toxcct][VisualCalc]
-- modified at 2:55 Tuesday 30th August, 2005
|
|
|
|