|
Anonymous wrote:
I want to know how to execute the program before the login screen appears...
Are you talking about a service?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
No, he is talking about a virus
Einstein: "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."
My Articles
|
|
|
|
|
I'm not sure how you gleaned that from the original post.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi,
I'm really stuck guys. I tried to change the icon in "folder options
|
|
|
|
|
In the 'Folder Options' -> 'File Types', There'll be another entry called "Folder" apart from "File Folder". (If it's not there, create it). Click Advanced and in the coming dialog box, add action "Open" with application "C:\Windows\Explorer.exe".
Regards,
Pravin.
|
|
|
|
|
Hi pravin,
Thanks a lot for that, but I got the information I needed.
Here it is if anyone has the same problem in the future.
1. Click start<run, type="" in="" "regedit"="" the="" box="" without="" quotes.
2.="" navigate="" to="" this="" location
hkey_classes_root\file="" folder
3.="" click="" on="" "shell",="" right="" pan="" highlight="" it.
4.="" 'default'="" value="" and="" select="" modify
5.="" replace="" what's="" "value="" data"="" with="" word="" "none",="" quotes.
that="" will="" reset="" it="" back="" normal.
this="" happend="" when="" i="" simply="" tried="" change="" icon="" for="" folder,="" drives.
here="" is="" how="" do="" that="" if="" you="" ever="" try="" drive="" icons="" xp="" buying="" iconpackager.
1.="" start<run,="" location
hkey_local_machine\software\microsoft\windows\currentversion\explorer\driveicons
if="" key="" does="" not="" already="" exist="" then="" create="" it.
3.="" driveicons="" folder="" a="" new="" sub-key="" single="" letter="" representing="" of="" be="" modified.="" (e.g.="" [hkey...\driveicons\c])
to="" sub-key,="" menu="" popup,="" new,="" key.="" name="" want="" for.
4.="" specified="" change,="" say="" c,="" another="" called="" "defaulticon"="" [hkey...\driveicons\c\defaulticon])
5.="" set="" "(default)"="" equal="" fully="" qualified="" file.="" file="" contains="" more="" one="" follow="" comma="" zero-based="" index="" "c:\icons\myicons.dll,4").
that's="" it.
if="" drive:
create="" within="" "defaultlabel"="" [hkey...\driveicons\c\defaultlabel])="" it's="" label="" "my="" zip="" drive").
for="" example:
defaulticon
(default)="c:\icons\myicons.dll,4
DefaultLabel
(Default)" =="" my="" drive
here="" an="" example="" tree="" mine
<a="" href="" rel="http://img301.imageshack.us/my.php?image=driveiconschange6le.jpg">DriveIconChange
Justice
|
|
|
|
|
i wanna write a program which can send messages as WM_LBUTTON_DOWN to other apps, for example, i want to work out the operation ->open "notepad"->input "ABC" in that blank edit area, what can i do in my own program? thanks a lot
Josephvan thanks for your attention
|
|
|
|
|
u can use SendInput() function. But to send characters to a specific edit window its probably best to use WM_CHAR with PostMessage().
|
|
|
|
|
is there any free SMTP server which i can use for sending e mails as i have written a module for sending emails in VC but i am not finding any free SMTP servers with which my module can connect.I have also found some free smtp servers on internet but when i try to connect to them i get the error of RELAY.i don't have any idea what is the problem.please explain what is the relay error and also tell me a free smtp server with which i can connect. i don't want to use MicroSoft exchange server.do help.
thanks
Be FaithFull To Your Work.
|
|
|
|
|
Usman Tasleem Akshaf wrote:
but when i try to connect to them i get the error of RELAY
The "error of relay" means that SMTP server is not willing to send mail for everyone; only authorized users can use the server to send mail.
Yes, there are some open relays out there. In most cases, it's not because they *want* to donate their resouces to anonymous others, but because some admin didn't do his job and didn't properly secure it. In any case, using one of those servers without authorization isn't ethical at all. Besides, these open relays, even when they appear to work, are so heavily abused by spammers that are blocked almost everywhere; most properly administered servers refuse to accept any message from them.
So, I suggest you either install your own SMTP server (paying for the hardware, software, bandwidth, administration, maintenance, etc.) or you get SMTP service from someone else. You could talk to your ISP, they usually provide that service.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
In SDI dialog based applications, InitDialog() is used for the any specific initializations . i would like to know that while building an activex control using vc wizard which function is used for specific initializations.
Be FaithFull To Your Work.
|
|
|
|
|
|
is there any way to slow a loop down my program is 1 big loop and it runs my cpu at almost 100% how can i cut it down to between 50 and 75%?
i would ask about making it run in the background but thats way over my head lol would like to know how to code a stop and pause button for it tho.
|
|
|
|
|
maybe use the Sleep(1); function. That will make the thread sleep for 1ms so that other threads can execute.
|
|
|
|
|
Sleep(1); makes the program lock up
|
|
|
|
|
Use a Thread for the task, and lower the priority of the thread.
For Stop, signal the thread to stop, like: make the loop test variable = 0; so the loop would stop.
For Pause, use SuspendThread() and ResumeThread().
this is this.
|
|
|
|
|
im a noob that is russian to me
|
|
|
|
|
#include <windows.h>
#include <conio.h>
#include <stdio.h>
bool g_bWorking;
void Worker()
{
while (g_bWorking)
{
//this is the loop where the program does all the work.
printf("ASD");
}
}
unsigned long __stdcall Thread(void* lpVoid)
{
Worker();
return 0;
}
main()
{
unsigned long id;
HANDLE h;
g_bWorking = TRUE;
h = CreateThread(NULL,0,Thread,0,CREATE_SUSPENDED,&id);
SetThreadPriority(h,THREAD_PRIORITY_LOWEST);
ResumeThread(h);
getch();
SuspendThread(h);
getch();
ResumeThread(h);
getch();
return 0;
}
It will start the thread, then on keypress, pause it, then on keypress resume it. You can see the result by running this console application.
When you need to stop it, make g_bWorking = false.
And by-the-way, are you writing a console app, or a windows app?
this is this.
|
|
|
|
|
|
Please also specify if you are using MFC or Win32. Is it a dialog-based application?
And Is the worker() function a member of your class?
this is this.
|
|
|
|
|
it is mfc and dialog and the last im not sure what ya mean
|
|
|
|
|
I assume this is your worker function:
void CMyDlg::Worker()
{
while (m_bWorking)
{
//processing here.
}
}
In your header file:
HANDLE m_hThread;
bool m_bWorking;
static DWORD __stdcall Thread(LPVOID lpVoid);
In your .cpp file:
DWORD __stdcall CMyDlg::Thread(LPVOID lpVoid)
{
CMyDlg* parent = (CMyDlg*)lpVoid;
parent->Worker();
return 0;
}
void CMyDlg::OnButtonStart()//your button handler function.
{
m_bWorking = TRUE;
m_hThread = CreateThread(NULL,0,Thread,this,CREATE_SUSPENDED,&id);
SetThreadPriority(m_hThread,THREAD_PRIORITY_LOWEST);
ResumeThread(m_hThread);
}
void CMyDlg::OnButtonSuspend()//pause it
{
SuspendThread(m_hThread);
}
void CMyDlg::OnButtonResume()//resume it
{
ResumeThread(m_hThread);
}
void CMyDlg::OnButtonStop()//stop it
{
m_bWorking = false;
}
I hope that helps.
this is this.
|
|
|
|
|
m_hThread = CreateThread(NULL,0,Thread,this,CREATE_SUSPENDED,&id);
C:\Program Files\Microsoft Visual Studio\MyProjects\wordlist\wordlistDlg.cpp(230) : error C2065: 'id' : undeclared identifier
its about time to give up
|
|
|
|
|
|
unsigned long id;
or DWORD id;
either of them will give another error if i try them and i cant even come close of making since of the web page
just shoot me
|
|
|
|