|
szcococut wrote: but I get an excetion!
i believe you get a ComplainNotExplainedEnoughException , don't you ?
please provide us the infos if you want so help...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
<br />
LPMALLOC lpMalloc;<br />
CoGetMalloc(1, &lpMalloc);<br />
lpMalloc->Free(url.pwcsUrl);<br />
lpMalloc->Free(url.pwcsTitle);<br />
lpMalloc->Release();<br />
or
<br />
CoTaskMemFree(url.pwcsUrl);<br />
CoTaskMemFree(url.pwcsTitle);<br />
The two methods are analogous (actully, identical, CoTaskMemFree calls CoGetMalloc and IMalloc->Free). Add error handling for flavor.
Cheers
Steen.
"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
thanks Steen !
it just What I want!
|
|
|
|
|
How to set Paper Size, Orientation, Number of Copies, Print Range in a program. Thanx in advance
Regards
KK
|
|
|
|
|
Here are some articles that can help you
Printing with MFC[^]
If you are looking for something other than MFC, Google is ur friend.
Regards,
Aamir
|
|
|
|
|
If i have the IP of a LAN computer how can i get programaticaly retrive the pc's name( the name asociated with the ip) ?
|
|
|
|
|
|
Is there anyone know the easiest way to change the Background color of Radio button in push button style?
Please help!
|
|
|
|
|
|
Hi All,
I found this link which has something about FTP and FXP, but i need more detailed info regarding this (i m working in MFC/VC++ 6.0)
http://www.smartftp.com/support/kb/index.php/14
Hopinf someone will help me out
-Me.
|
|
|
|
|
|
Hi Aamir,
Thanks for replying
I have already done some implementations using CFtpConnection, and other FTP session classes. I have already implemented for downlaod/upload etc which worked fine but that was upload/download from my local m/c to FTP server. Now what i want to do is...."how to transfer files between 2 remote FTP servers".
One way to do that is first download the required files to ur local m/c from remote ftp server1 and then upload from ur local m/c (ie client m/c) to the second remote ftp server2.
But how to do that without storing and forwarding those files on ur local client m/c. Cant we transfer them between 2 remote FTP servers directly ??
Regards,
-Me.
|
|
|
|
|
Hi people ,
Need some urgent help from u all. Hope somebody can help me out.
I m very confused as to whether it is possible to transfer files from a remote FTP server to another remote FTP server directly without downloading/uploading those files to ur own local m/c ??
If it is possible, then how do i go about it ??
Need to know this urgently
Thanks a lot.
-Me .
|
|
|
|
|
What is m/c?
You can open a pipe to both ftp locations and transfer the data through the middle system. The data can remain in a buffer, it does not need to be written to the local drive.
|
|
|
|
|
But how do i implement it ??
any clues ??
m/c -> machine.
need urgent help on this....pls help.
Thanks.
-Me.
|
|
|
|
|
Hy All .
If you know how can disable "Del" key or other key from keyboard in windows 2000, please share with me .
Thanks a'lot .
(Excuse me , I don't know english well . )
|
|
|
|
|
|
|
Hey why don't you pull it out.
Easiest.
Owner Drawn
--Nothing special
|
|
|
|
|
Hi guys,:->
I need help.
Can you tell me how to know what are the ports that are currrently being occupied by a particular application.
I am writing an application which would tell the user what are the ports being occupied an application.
Owner Drawn
--Nothing special
|
|
|
|
|
Hi
My application is vc++ Dialog based one. I am using one library for my application. when i am including that library I am getting so many linker errors like
LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCRT.dll)
LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrt.lib(MSVCRT.dll)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrt.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj)
LIBC.lib(mbctype.obj) : error LNK2005: __setmbcp already defined in msvcrt.lib(MSVCRT.dll)
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/OIApp.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
For this i have ignored LIBC.lib library then i am getting one linker error called
error LNK2001: unresolved external symbol ___pioinfo
what should i have to do.Please help me.
Thanks in advance
|
|
|
|
|
|
Thanks
But i am not at all declaring any variable of type _pionifo. What is the purpose of that variable also i dont know.
When i am ignoring libc.lib and libci.lib it is showing only one linker error now. but it is different one. It is showing that error in lib file which i am including.
error LNK2001: unresolved external symbol "class ostream_withassign cout" (?cout@@3Vostream_withassign@@A)
if i am including iostream.h this is giving only one the above error. if i am not including iostream.h it is giving 5 linker errors of similar type of the above one.
please help me.
Thanks
|
|
|
|
|
Conflicting runtime libraries (single threaded/multi threaded)?
Conflicting use of MFC (static lib/DLL)?
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
-- modified at 5:26 Tuesday 15th November, 2005
|
|
|
|
|
I'm trying to do this project that reads a four word sentence from one string and then extract each word in the string to four other strings using the spaces between the words as indexes.Then display them in reverse. I cant seem to get this to work and I can't use coditional operators. Any suggestions.Here what I have so far.
#include <iostream><br />
#include <string><br />
<br />
using namespace std;<br />
<br />
int main(void)<br />
{<br />
<br />
string sentence;<br />
<br />
cout << "Enter a four word sentence:";<br />
getline(cin,sentence);<br />
cout << "Original string:"<< sentence << endl;<br />
<br />
int blank=(" ");<br />
<br />
int firstindex = sentence.find(blank);<br />
<br />
string first = sentence.substr(0,firstindex);<br />
<br />
<br />
int secondindex = sentence.find(blank,firstindex + 1);<br />
<br />
<br />
string second = sentence.substr(blank + 1,secondindex);<br />
<br />
int forthindex = sentence.rfind(blank);<br />
<br />
string forth= sentence.substr(sentence.length,blank);<br />
<br />
int thirdindex= sentence.rfind(blank,forthindex - 1)<br />
<br />
string third= sentence.substr(thirdindex,sentence.length - 1);<br />
<br />
<br />
<br />
cout << "Reversed string:" << forth+" "+third+" "+second+" "+first<< endl;<br />
<br />
BINARY
|
|
|
|