|
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 ;
} }
|
|
|
|
|
How to delete System Restore files using Visual C++?
I need to delete all files in "C:\System Volume Information" and so on, especially "non-removable" *.log ones. What should I do? may be some api functions or registry keys can help me?
thank you in advance!
|
|
|
|
|
I am using crystal report 9 to generate reports. The problem is that i have never used crystal report. The so called tutorial which came with crystal report is of no good because it gives an error on the line which says
m_Report = m_Application->NewReport();
error: Creation feature not available.
Please tell me just how can i view an existing crystal report in VC and how can i perfor filtering on it through Visual C code or is there any suggestion to the above problem.
|
|
|
|
|
Hello.
I would like to create an owner-drawn CMenu class, and therefore i override DrawItem and MeasureItem, like this:
<br />
class MyMenu : public CMenu {<br />
public:<br />
virtual void DrawItem(LPDRAWITEMSTRUCT lpDis);<br />
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMis);<br />
};<br />
<br />
void MyMenu::DrawItem(LPDRAWITEMSTRUCT lpDis)<br />
{<br />
}<br />
void MyMenu::MeasureItem(LPMEASUREITEMSTRUCT lpMis)<br />
{<br />
}<br />
And then I add a menu to my app's CMainFrame:
<br />
MyMenu TopMenu;<br />
<br />
TopMenu.LoadMenu(IDR_MAINFRAME);<br />
for(int i = 0; i<3; ++i)<br />
TopMenu.ModifyMenu(ID_DAWS_HEJ+i, MF_OWNERDRAW, ID_DAWS_HEJ+i);<br />
SetMenu(&TopMenu);<br />
But the problem is that DrawItem and MeasureItem are never called! I do receive WM_DRAWITEM and WM_MEASUREITEM, but they are just not handled by my class. What do I do?
|
|
|
|
|
I want to use some shortcuts in my App written in VC++6, but the accelerators do not seem to work by any chance. I made exactly what is written in MSDN, but still no result?
Could you give me some suggestions, or something?
10x alot
|
|
|
|