|
Suppose i'm having a SW that needs to be updated from the net (like ACDsee or acrobat reader)
how can i do that.
|
|
|
|
|
When I try to compile *.c files in Visual Studio, it lists me a lot of errors, like:
error LNK2019: unresolved external symbol __imp__send@16 referenced in function _main
and all this errors are referenced to identifires from library "winsock2.h"
Please tell me, what to do. Thanks.
|
|
|
|
|
link to wsock32.lib
Project Settings -> Linker -> Input -> additional dependencies in VC.NET
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
How to clean start->run menu MRU items without reboot?
if I delete corresponding registry key, nothing is changed before reboot
thanks in advance.
thanks, Monk.
|
|
|
|
|
I'm not sure if this will help but try this:
SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, (WPARAM)NULL, (LPARAM)NULL);
Hope this helps
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
|
i am wondering how to write to a file without sending out a system wide notification that it was written to... this is because i want to modify an RC file pre-build and i dont want VC to tell me that it was modified and ask me to reload it
thanks
r -€
|
|
|
|
|
|
I have a text file that writed in VietNamese font code (ex: TCVN3,VNI..), I want to recoginize the code that it was typed. Please help me
|
|
|
|
|
how can i send an email to abc@rediffmail.com/yahoo.com/hotmail.com using SMTP.. ??
|
|
|
|
|
via WinSock and the SMTP Protocoll
ftp://ftp.rfc-editor.org/in-notes/rfc2821.txt
but this would cause a lot of trivial stuff to do so you could use the MAPI
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/_mapi1book_c_mapisendmail.asp
|
|
|
|
|
If you are using MFC you can try this class:
http://www.naughter.com/smtp.html
Best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
i see in some program ,some function whose return value is "return -1" however others whose return value is "return -2",what is the difference between them?thanks,all.
|
|
|
|
|
That is purely context dependent.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
iostream library also support the file's input and output,for opening a file providing input ,we must declare a object whose type is ifstream.
the same as ofsteam.
but i want to know ,for example,the object name is infile,the declariation is below:ifstream infile{"name of file") ofstream outfile("name of file")
which request or restriction to "name of file"?
|
|
|
|
|
the form of "name of file" depends on the operating system.
If you're working with a Linux system you have to write ifstream infile("/home/myuser/file"); under Windows you have to write ifstream infile("C:\File.txt");
|
|
|
|
|
#include<iostream>
#include<fstream>#include<string>using namespace std;
int main()
{
ofstream outfile("C:/Documents and Settings/tanghuitian/My Documents/out_file.txt");
ifstream infile("C:/Documents and Settings/tanghuitian/MyDocuments/in_file.txt");
if(!outfile)
{
cerr<<"error:unable to open output file!\n";
return -3;
}//if"\",note unable to open input file
if(!infile)
{
cerr<<"error:unable to open input file!\n";
return -1;
}
string word;
while (infile>>word)
outfile<
|
|
|
|
|
yes?
wheres the problem?
If there is the right thing in in_file.txt it worked properly
a file operation doesn't goes 1h or so...
but your while construct looks not really good.
while(infile >> word)
do you want to compare the size of infile with word or what?
|
|
|
|
|
I tried this program to put the .dll inside the .exe and it didnt work. Do i need to change the locations of the files in the config?
{
static char Path[MAX_PATH];
GetModuleFileName(NULL, Path, MAX_PATH);
unsigned int i = strlen(Path);
while (Path[i] != '\\')
{
Path[i] = '\0';
i--;
}
strcat(Path, "my.dll");
return Path;
like is there a special way i put the path in? Or do i need to add something to my dll?
|
|
|
|
|
For one thing, you can remove the call to strlen() because GetModuleFileName returns the length of the string:
unsigned int i = GetModuleFileName(NULL, Path, MAX_PATH);
Aside from that, your code looks like it does what I think you want it to do:
replace "C:\DIRECTORY\FILENAME.EXE" with "C:\DIRECTORY\my.dll"
What exactly isn't working?
Glano perictu com sahni delorin!
|
|
|
|
|
Somebody help!!
i would like to create a handle for a floppy and use,SetFilePointer() ReadFile() and WriteFile() to read, write and maybe display contents of boot sectori.e geometry and stuff. please give an example or site for more info
|
|
|
|
|
there is a sample application on the msdn for accessing the floppy disc.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpfloppysampleaccessingfloppydisk.asp
Basically a floppy disk is not very differnt to any other files. Just open it with OpenFile and you get a file Handle. With this file handle you can do file operations on the floppy. Don't forget that you close file handles with CloseFile and not with CloseHandle
|
|
|
|
|
robhyland wrote:
if (donation[max] > avg );
larger++;
You have a ";" immediately after your comparison thus ending the if block and executing the larger++ every time.
Remove that semi-colon.
You should always turn on your compilers most extreme warning level - although this code will compile and is syntactically valid, a high warning level would have flagged this for you.
I just hope this was a legitimate bug of yours and not a de-bugging homework question.......
Glano perictu com sahni delorin!
|
|
|
|
|
I want to put the .dll inside a .exe so i would only have 1 file instead of two files. Some person told me this and i need some help with what he said
"do it the same way as sysinternal tools do. put the dll as resource into the exe file, extract it when running the program and load it dynamically then."
Can someone explain to me how to do all of this, like email me like a manuel on how to do it, with lots of detials? Because i have only been doing c++ for about 2 months and he was talking to advanced for me
|
|
|
|
|
Hi !:
I've introduced some buttons into a CListCtrl, but they are subitems. So when a column is resized I want that buttons to resize too, and If we move into the CListCtrl searching for more entries they should move with the text. I've made it with:
CListCtrl::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
CListCtrl::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
But they are slow, is not what I'm looking for. And if I slide with the mouse wheel they don't move.
Please help with this topic...
Thank you so much !!
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
if ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|