|
No, not without outside help. The shortcut has to have the directory name at least in it's "Start In" box. Without it, there is no telling what the current directory will be when the shortcut is launched, therefore, the shortcut will try to launch the app from a subdirectory of ANY directory that happens to be current at the time.
An alternative would be to launch your application from a VBScript (*.vbs) file instead of a shortcut. Or, have a VBScript figure out what the path should be, then create a new shortcut with the appropriate information and launch that.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave.
I won't bang my head any more.
Robert
|
|
|
|
|
Hello All,
I have been facing this unique problem for a while. The problem is that when ever I run an application which consumes huge amount of memory, the system crashes when I try to open/close Net meeting. Any pointers how to avoid this strange behaviour.
There is no system crash (blue screen) when net meeting is not invoked.
Regards,
Shashank
|
|
|
|
|
After your computer is crash, try to start your computer again in safe mode and log on as administrator to view an event viewer to investigate for the problem.
|
|
|
|
|
In the NetMeeting -> Help -> Readme follow comment exist :
"
Sharing of Microsoft(R) DirectX(R), OpenGL, MS-DOS(R), graphics-intensive games, and .avi files is not supported and might not function properly.
"
|
|
|
|
|
I m using _wrename( ) in my VC code.. when i register file in the file system and rename them using _wrename() after performing this many times, the new files are registered correctly and renamed appropriately but somehow the files registered earlier gets deleted from the file system. now each time the new file is registered an d renamed an old file is deleted.. I m unable to track the reason behind this..
Please help me with an appropriate logic behind this..
Thanks in advance..
|
|
|
|
|
|
somebody who knows how to explain this pseudocode??
typedef int semaphore;
semaphore mutex = 1; /*controls access to 'rc'*/
semaphore db = 1; /*controls access to the database*/
int rc = 0; /*# of processes reading or wanting to */
void reader(void)
{
while(TRUE){
down(&mutex); /*get exclusive access to 'rc'*/
rc = rc + 1; /*one reader more now*/
if (rc == 1) down(&db); /*if this is the first reader...*/
up(&upmutext); /*released exclusive access to 'rc'*/
read_data_base(); /*access the data*/
down(&mutex); /*get exclusive access to 'rc'*/
rc = rc-1; /*one reader fewer now*/
if (rc==0) up(&db); /*if this is the last reader...*/
use_data_read(); /*noncritical region*/
}
}
void writer(void)
{
while(TRUE){
think_up_data(); /*noncritical region*/
down(&db); /*get exclusive access*/
write_data_base(); /*update the data*/
up(&db); /release exclusive access*/
}
}
|
|
|
|
|
|
readers and writers problem is my report for my operating system subject and when i notice that this topic is ain't easy to understand. Since im an aggrser i really do my best to understand until i know now what is a mutex and a semaphore now it seem that im getting to knowing my topic but the solution of the readers and writers problem kills me but not all the solutions only the last one but i did try to understand it but im not sure with my explaination these is the 3 solution: " When a reader arrives and a writer is waiting, the reader is suspended behind the writer instead of being admitted immediately. in this way, a writer has to wait for the readers that were active when it arrived to finish but does not wait for the readers that came along after it".
my explaination is :in this solution is a combination of 1 and 2 solution where in which the semaphore takes charge on his functions because in semaphore you can "set it" and "check it".
for example the readers are accessing the database and the semaphore is set to the last reader. if it is the last reader, the semaphore then will give a signal to the mutex and the mutex then will unblock the writer and when the writers starts writing and one or more reader arrive to access the database unfortunately they cannot access because it is block by the mutex because its the writers turn to write a query and the readers may wait for the writer to finish.
is my explaination correct or wrong if there is something wrong hope somebody will help were did i go wrong in my explanation.
and on last thing my biggest problem here is my pseudocode for that solution that i explain. i understand some parts but some i dont so pls kind hearted programers kindly help me.
this is the pseudocode for the solution that i explained:
typedef int semaphore;
semaphore mutex = 1; /*controls access to 'rc'*/
semaphore db = 1; /*controls access to the database*/
int rc = 0; /*# of processes reading or wanting to */
void reader(void)
{
while(TRUE){
down(&mutex); /*get exclusive access to 'rc'*/
rc = rc + 1; /*one reader more now*/
if (rc == 1) down(&db); /*if this is the first reader...*/
up(&upmutext); /*released exclusive access to 'rc'*/
read_data_base(); /*access the data*/
down(&mutex); /*get exclusive access to 'rc'*/
rc = rc-1; /*one reader fewer now*/
if (rc==0) up(&db); /*if this is the last reader...*/
use_data_read(); /*noncritical region*/
}
}
void writer(void)
{
while(TRUE){
think_up_data(); /*noncritical region*/
down(&db); /*get exclusive access*/
write_data_base(); /*update the data*/
up(&db); /release exclusive access*/
}
}
this explaination comes from the book some of the books explaination is understandable mostly at the top and the middle but in the down part the delimma stars there so pls kind hearted programmers help me in my explaination of the 3rd solution and the pseudocode of the solution. if you have the answer pls dont hesitate to email me in my e-mail add k tnx.
|
|
|
|
|
|
|
The documentation on SysInternals website wasn't sufficient??
The L parameter just specifies the starting drive letter that NTFSDOS can use to mount the NTFS volume.
So whats the problem? Better yet, what's the error message?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I want to know if I can operate MQ series in a pc or just into a 0s/400 machine?
It s only to try and learn not to operate in real mode.
Thanks
Claude
|
|
|
|
|
If you can find a Windows, or Java, implementation of an MQ Series server, great! If not, you're limited to running it on O/S400.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi Community ,
You know how to create a CD / DVD booteable which has some versions of Windows's operating system, like XP (home & pro), 2000 (all), 2003 (all), 98 (se), ERDCommander, etc and some Linux's distributions like Knoppix, BigLinux, and other lives cd.
The idea is to integrate in a CD / DVD all the versions of Windows and Linux that fit in a such way that when I need to install some of them, I can use this CD / DVD booteable.
If it is possible to create this CD / DVD, you could tell me how to make it or where I can find to find information with respect to the topic.
I will thank you for the help that you can offer me
Greetings...
|
|
|
|
|
Luka Brazzi wrote: Linux's distributions like Knoppix, BigLinux, and other lives cd.
Linux live cd[^]
Luka Brazzi wrote: create a CD / DVD booteable which has some versions of Windows's operating system, like XP (home & pro), 2000 (all), 2003 (all), 98 (se), ERDCommander
Bart PE[^].
|
|
|
|
|
but, I can make cd/dvd with linux and windows together ???
Saludos...
|
|
|
|
|
Please clarify about your question. Do you want to mix its system or or just put it in a difference part in one CD and give a menu for user to choose when it boot up.
|
|
|
|
|
Yes, i wan put this so in differents part in one CD/DVD and give a menu for user to choose when it boot up, something like that:
CD/DVD's structure
\CD_DVD\
|_ SETUP\
|_ WXP\ (this is the windows version)
|_ i386\ (install files)
|_ KPX (this is the linux' live cd)
|_ root\ (linux files)
and when it boot up, menu will be like this:
Menu...
1- Windows XP Pro
2- Knoppix
3- Boot from HD
Enter your choise :
so, what i should make for create it ???
Saludos...
|
|
|
|
|
Gracias por las ideas que me han brindado hasta ahora, pero todavia no logro satisfacer mi idea de unir a varios sistemas operativos de linux y de windows en un mismo cd/dvd de forma tal que cuando este bootee pueda escoger a mediante un menu la version de windows o de linux (de las que tiene este cd/dvd) que quiera instalar en la pc o ejecutar (para el caso de que sea un live cd).
Yo poseo varias versiones de so de windows en ficheros .iso y varias distribuciones de linux en el mismo formato de fichero y lo que quiero es almacenar todas las que me quepan en un cd/dvd y que este me permita realizar la operacion antes explicada.
Espero ahora haberme explicado mejor en cuanto a la idea inicial planteada
Le agradecere la ayuda que pueda brindarme...
Saludos...
|
|
|
|
|
Hi, I got this book[^] and found it very well for learning and further reference. But this book does not cover all command line in windows xp. I found that in windows xp there is a command line reference but some has an example and some do not have example.
My question is: does anyone know any book that guide on how to use all command line in windows and with a good example?
|
|
|
|
|
In a console app, you use the standard argc/argv parameters to main() .
In a GUI app, WinMain() gets the command line as a parameter. The MS CRT also sets up the globals __argc and __argv which work just like argc /argv .
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
VB > soccer
|
|
|
|
|
Thank you very much for your comment. But what I want is the book or resource that could give all example of the command which is using in windows.
|
|
|
|
|
I have a HP Pentium 4 laptop, 3.60 GHz, 1GB RAM, running Windows XP ver2002, Service Pack 2.
I noticed and inconsistency in the Windows Security Center (application). When I open up the Security Center, the page shows the "FIREWALL" section reporting ON, "Norton Internet Worm Protection" is currently on. But, when I scroll down the Security Center's page and open "Windows Firewall", the page that opens reveals that Firewall is OFF.
How can one report Firewall being ON, while the other reports OFF?
This lead me to the problem I suspect this inconsitency is causing:
I have a network application that is listening to network traffic and getting UDP packets to process. It seems that my application doesn't function as has in the past and as expected because the "Firewall" is blocking network traffic.
I have tried putting the Port #s I'm monitoring in the "Exceptions" page settings, but this doesn't seem to help.
Any suggestions to fix the Firewall inconsistency?
Thanks!
Johnny
|
|
|
|