|
Really? Maybe they changed that in VB.NET. I haven't looked at VB in many years.
|
|
|
|
|
I'm talking about VB6.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I know you have a secret fetish for VB6 (the main reason why you got into programming), but there's no need to support it here.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Rajesh R Subramanian wrote: I know you have a secret fetish for VB6 (the main reason why you got into programming)
The only reason!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
fcis2008 wrote: I'm using vb 6
Is this a typo ? Are you using visual basic or visual C++ ? Because this is the C++ forum, so if it is a question for Visual Basic, then you should post in the VB forum.
Anyway, if you are using C++, take a look at this article[^]
|
|
|
|
|
You application may host a scripting language.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
If you're using C++ (and if not, why have you posted in this forum?), then this article[^] contains just what you need.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
Nicholas Amh wrote: Can someone help me out.
How many more times do you need to have this explained to you before you realise that you are totally out of your depth on this? You have had lots of suggestions as to what you need to do but you obviously don't have the basic knowledge to implement them. I would suggest that you get hold of some books on basic C++ and Windows Programming and work through the sample code to get the understanding and skills you need to solve this problem.
Reposting the same question every day is just getting you more confused.
|
|
|
|
|
hey everybody
I want to implement file transmisstion between two client peer in
different LAN.
they get each Extranet IP and Port through http server(when they visit a
site like www.codeproject.com i will return other Extranet IP and Port)
when CLientA get ClienB Extranet Ip And Port ClientA will connect To ClinetB
in the same time ClientB Will Bind To Local Port and begin listen
my problem that can the connect oK ?,I have tested is fail but i want to know
why failed can someone tell me why
thanks
modified on Thursday, October 22, 2009 4:42 AM
|
|
|
|
|
Hi,
Sounds like an excellent project. When will you have it completed?
Best Wishes,
-David Delaune
|
|
|
|
|
*click*
Message marked as answered.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
somebody who know the Principle may will help me to solve the problem
thank you
|
|
|
|
|
Hi jeansea,
Your question is very difficult for us to understand. Please improve the question and we can help you. You need to be very specific about the problem you are trying to solve.
Best Wishes,
-David Delaune
|
|
|
|
|
|
I have created a Windows service in VC6 and wanted to know how can I implement a WndProc to handle Windows Messages inside the same.
Regards,
Kushagra
I hate coding but I luv to develop
|
|
|
|
|
You want to get the message of which window(s)?
i cannot understand.
Величие не Бога может быть недооценена.
|
|
|
|
|
Standard Windows Messages like WM_COMMAND,WM_TIMER and so on
|
|
|
|
|
From your words, i felt that you need to get some specific messages generated by any window globally.
if so then, it sound a different intention with it
well you have to hook WINDOWS messages globally using SetWindowHookEx with WH_CALLWNDPROC as hook id [^]
Величие не Бога может быть недооценена.
|
|
|
|
|
A service runs in the background, so where are these WM_COMMAND's coming from? You won;t have a menu, or a dialog box...
I think you need to go back to your basics - a service communicates with other programs using various interprocess communcations.
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
I know that but ... The purpose I wanted to know that is I wanted to either abort shutdown or delay the time so that I can run some cleanup scripts just before the system gets shutdown.
Regrads,
Kushagra
|
|
|
|
|
Hi,
I want to know that can i store output from readdir() function in an array. I have a c program
#include <dirent.h>
#include <stdio.h>
int main(void)
{
DIR *d;
struct dirent *dir;
d=opendir("C:\\");
printf("Directories in C:\\ \n");
while((dir=readdir(d))!=NULL)
{
printf("%s\n",dir->d_name);
}
closedir(d);
return(0);
}
Instead of printing directories in output i want to store that result in an array.can it is possible?
|
|
|
|
|
Sure. Just you strcpy_s instead of printf to store it in an array.
|
|
|
|
|
Hey Superman_,
thanks for this.Now if i write
#include <dirent.h>
#include <stdio.h>
int main(void)
{
char array[1024];
DIR *d;
struct dirent *dir;
d=opendir("C:\\");
printf("Directories in C:\\ \n");
while((dir=readdir(d))!=NULL)
{
strcpy_s(array,dir->d_name);
}
closedir(d);
return(0);
}
will it works?actually at this time i can n't check the code.can you please help me?
|
|
|
|
|
ravi 12 wrote: will it works?
No, you are writing all your strings into one string, so you will keep only the last one. The problem you have is that you don't know upfront how many directories you will get, so you don't know how large you have to make your array. You could choose the brute force and use an array which is large enough (e.g. char array[1024][1024]: max 1024 directories of max 1024 characters). And then in your while loop you keep an index of where to store the current directory name (simply increment it each time).
Is it a C or C++ project ? Because if it is C++, I strongly suggest you to use stl containers (std::list for instance) and std::string, this will avoid to create an array with a fixed size upfront.
|
|
|
|