|
Hi
To create installer (Install shield) please let me know if following files are sufficient or not
Project related files:
Exe file
*.BSC
Help file
Contents file
DLL’s:
ADVAPI32.DLL
COMCTL32.DLL
COMDLG32.DLL
GDI32.DLL
KERNEL32.DLL
MSVCRT.DLL
NTDLL.DLL
OLE32.DLL
OLEAUT32.DLL
OLEDLG.DLL
OLEPRO32.DLL
RPCRT4.DLL
SECUR32.DLL
SHELL32.DLL
SHLWAPI.DLL
USER32.DLL
WINMM.DLL
WINSPOOL.DRV
(Above DLLs I got from Dependency walker)
Do we need to include MFC runtime and .Net framework while creating installer?
Thanks
|
|
|
|
|
|
Thanks for the information. It helped me in identifying the DLLS used by the project.
Do .Net frame work and MFC runtime is required to run the exe developed using Microsoft Visual C++ 6.0.
Thanks
kavitha
|
|
|
|
|
Hello,
I want to convert char* to char[100]
how do i go about it
Pritha
|
|
|
|
|
char buf[100];
strncpy(buf, pChar, 99);
buf[99] = 0;
|
|
|
|
|
Why would you ever need such a conversion?! What are you trying to do and did the compiler give you such a conversion error? Give that context here and someone might be able to help you.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
yea, why would you need to do this?
David
|
|
|
|
|
Hi David,
You probably wanted to reply to the OP? Replying to a different message on the thread won't notify the OP about your post.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
yea .. F'd that up didn't i
David
|
|
|
|
|
char *charArray = new char[100];
char (*temp)[100]((char(*)[100])charArray); Then temp is a pointer to a char[100] array, so *temp is your array of 100 elements. The following should also work:
char (&temp)[100](*((char(*)[100])charArray)); In this case, temp is just an alias to the array, so you don't have to dereference it prior to accessing its members.
As for the reasons to do such a thing, they are many. One is if you have to create the array using a specialized memory allocation function, such as the case where you are using an external memory manager. For example, when coding for Matlab, you have to use mxAlloc to allocate ANY memory that will persist after your function is called. However, it may be more convenient in code to treat allocated memory as an array. As another example, suppose you create a template function that takes a 3D-array that you want to overload to take a 2D array. In this case, you would have to convert a TYPE[][] to a TYPE[1][][], which is a similar operation. For example,
template<size_t height, size_t width>
void doSomething(double (&darray)[height][width]) {
...
}
int main() {
const size_t height = 100;
const size_t width = 100;
double* memBlock2D = mxAlloc(height * width * sizeof(double));
double (&memArray2D)[height][width](*((double(*)[height][width])memBlock2D));
doSomething(memArray2D);
return 0;
} Hope this helps,
Sounds like somebody's got a case of the Mondays
-Jeff
modified on Tuesday, September 22, 2009 3:21 PM
|
|
|
|
|
Hi all,
I want to get cureent url from address bar of firefox.
Is there any snippet code to do this?
Thanx,
Jay
|
|
|
|
|
is there any way to get access to the details of the tasks show in the windows "task manager"? by c++.
|
|
|
|
|
Not with C++. Now if you were interested in some Windows API, there probably is. What did you have in mind?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
Hi
I just tried to call Sleep(1000) in a thread function
But when i tried to
Unit threadFun(LPVOID lparam)
{
while(1)
{
Sleep(1000); // When tried to give break point over here appliacation gets terminates
............
}
}
Can any one give me solution to this
Thanks
|
|
|
|
|
VVVimal wrote: Can any one give me solution to this
Remove the call to Sleep() . It's almost always unnecessary and usually indicates a design flaw.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
But i need a Sleep() function over there.
Because i need a function to be get called every 1000 milliseconds
|
|
|
|
|
VVVimal wrote: Because i need a function to be get called every 1000 milliseconds
Then use SetTimer(1000) .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Remember that Windows is not a real-time system, your function might or might not be called at every 1000 milliseconds, depending on what's happening on the OS.
This signature was proudly tested on animals.
|
|
|
|
|
VVVimal wrote: Unit threadFun(LPVOID lparam)
{
while(1)
{
Sleep(1000); // When tried to give break point over here appliacation gets terminates
............
}
}
I don't see why should the application "terminate" with this piece of code. (It might have probably helped us if you had given the remaining code within the thread function to see if anything is wrong)
With more than one thread running, may be the issue is somewhere else? Besides that, like David said, remove the unnecessary Sleep call and replace it with something that makes sense of some sort.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
does the application terminate or does it hang?
i would thing that statement would cause the app to hang... continuous loop with a defined wait time.. is that 1000 seconds or milliseconds it's library specific..??
David
|
|
|
|
|
David, you again replied to me instead of the OP. You should click reply on the specific message that you want to reply to.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
my questions are buried below..
David
|
|
|
|
|
I use Sleep() all the time in threaded code, there's no reason it should cause the termination in and of itself.
However, the thread code you show runs in the context of a larger program, notably the main thread which created the thread you show. What is that thread doing? If it exits, it will take the created thread down with it.
Make sure the main code is waiting for this thread to terminate before it does.
|
|
|
|
|
VVVimal wrote: When tried to give break point over here appliacation gets terminates
do you mean, it is getting terminated when you try to debug?
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|