|
i did and added all those files too but it still won't register
what if these fiels are yet to be copied and the setup tries to register the control or the setup copies all the files and then tries to register
??
|
|
|
|
|
What is the error code returned by regsvr32?
Isuppose its possible to get InstallShield to screw up the installation order, but its probably not easy. Are there any dlls that cannot be copied until the system reboots? Does InstallSheield automatically reboot your system? If not, does it need to? If you manually restart the system, can you register the control?
|
|
|
|
|
how do i copy contents of one DC to another
i tried BitBLit but it does't work
here is the sample code
OnDraw(CDC *pDC)
{
CDC memDC;
memDC.CreateCompatibleDC(pDC);
DrawStuff(&memDC); //Draw in mem dc
pDC->bitblit(0,0,width,height,&memDC,0,0,SRCCOPY);
}
but nothing happens if i don't use memDC then Drawing is done
please help
|
|
|
|
|
You need a bitmap associated with memory DC. Search CodeProject for CMemDC class - it'll do the boring stuff for you.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I have a weird little problem, and I think it's associated with DirectShow.
I have an app that creates a CView-based window, and passes the hwnd to a DLL. The hwnd allows me to "attach" (don't know a better word at the moment) a live video preview to the window that was created in the app.
When I move the child window/view around in the app's window, everything is fine - the window always repaints itself. However, if I move the window so that a portion of the client rect is clipped by the app window, when I move the child completely back onto the app window, the portion that *was* clipped does not repaint itself.
I tried various API calls (MoveWindow, SetWindowPos, UpdateWindow, InvalidateRect, and RedrawWindow), but to no avail.
Thinking the problem might be one of timing (a message was getting lost/ignored somehow), I put Sleep(1000); in the code just before my rectangle update. This caused the window to repaint itself correctly at first, but then after the one-second delay, *my* repaint occurred, and the portion that was previously out of view repainted as black.
As an afterthought, I decided to just comment out the contents of my dll window repainting function, and exactly the same thing happens, so I know it's not my code that's causing this.
Does anyone have any words of wisdom?
PS. Both the app and the DLL use MFC, and I cannot add additional parameters that can be passed to the DLL from the app (architectural restriction, not mine).
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
I found the problem. I had to add the style WS_CLIPCHILDREN to the view in OnPrecreateWindow().
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi,
I've created an application in which I want to change the menu, accelerators, toolbars, etc dependent on a particular license file. This all works fine, except I don't see how to change the icon that shows up in the shell for the application.
I can easily change the icon in the app's caption/title bar, but not the the icon for the app that would show up on the Windows Desktop or in Windows Explorer.
Any ideas on how / if I can do this?
Thanks!
|
|
|
|
|
AFAIR, the shell just grabs first icon it founds in resources embedded in .exe.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Thanks for your reply -- that makes sense about what icon the shell grabs.
However, is there any way to change which icon is displayed through the shell (like after the first time the app is run)?
|
|
|
|
|
Chris Hambleton wrote:
However, is there any way to change which icon is displayed through the shell
Shell grabs *and* displays first icon in .exe. What do you mean by 'like after the first time the app is run'? App only registers its file types, not the .exe icon itself.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
|
No. In your program #define WINVER before including windows headers.
#define WINVER 0x0500
#include <windows.h>
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Use 'Find in Files' command to search for COMBOBOXINFO identifier in your include directory. If it's not there, you'll need to download recent Platform SDK from msdn.microsoft.com.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Set the cursor at tagCOMBOBOXINFO, then press Ctrl+J. You'll probably see this line:
#ifndef NOWINABLE
Then press Ctrl+J again. On my workstation it goes to the following line:
#if(WINVER >= 0x0500)
What's displayed on your screen?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Post the #define WINVER and #includes. You've screwed something - maybe WINVER is #defined too late.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Move #define WINVER 0x0500 into stdafx.h. It must be placed before #includes.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hi,
Dose any body know how to use arrays?. im trying to put the following in a array. I need help on the code to store it and use it when needed
thankyou
- - A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
A - A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
B - B C D E F G H I J K L M N O P Q R S T U V W X Y Z A
C - C D E F G H I J K L M N O P Q R S T U V W X Y Z A B
D - D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
E - E F G H I J K L M N O P Q R S T U V W X Y Z A B C D
.
.
. (and so on)
.
.
X - X Y Z A B C D E F G H I J K L M N O P Q R S T U V W
Y - Y Z A B C D E F G H I J K L M N O P Q R S T U V W X
Z - Z A B C D E F G H I J K L M N O P Q R S T U V W X Y
|
|
|
|
|
I'm not sure I understand the question. Here's one way to store and print your array:
void printArray(char *array);
int main(void) {
char array[] = {'-','-','A',...,'Z'};//enter all letters of the alphabet
printArray(array);
return 0;
}
void printArray(char *array){
//code to print it in whatever format you need
}
ralf.riedel@usm.edu
|
|
|
|
|
im trying to create an Vigenere cipher demo.
It basically needs the alpabetbet grid to encrypt data.
There for the grid must be stored in a way in which it is possible to read up/down the column and row to get the chipertext.
i could do with any help on the code
thankyou
x-axiz Keyword: RELAT IONSR ELATI ONSRE LATIO NSREL
y-axis Plaintext: TOBEO RNOTT OBETH ATIST HEQUE STION
Ciphertext: KSMEH ZBBLK SMEMP OGAJX SEJCS FLZSY
|
|
|
|
|
You can do a Vigniere cipher much easier than that. You don't need an array.
a character in C is simply an 8 bit number. eg, the letter 'A' is value 65. 'B' is 66 etc.
You can use single characters and numbers interchangeably.
eg. char MyNumber = 'A'; // MyNumber contains 65.
To this end, you can encipher characters just by adding or subtracting an offset to them.
Try this:
char message[]="This is the plaintext";
int shift=5;
cout << "Plaintext: " << message << "\n";
for (int i=0; i < strlen(plaintext); i++)
{
*message[i] += shift;
}
cout << "Ciphertext: " << message << "\n";
That should give you a good start.
Jon
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
The file names in my Visual C++ project have
extensions of "cc" and "hh" ( not the standard cpp and h ).
Class view does not work when these extensions are used.
How can I keep these extensions and make class view work properly?
Shai Gutner
shai.gutner@schema.com
www.schema.com
|
|
|
|
|
Did you add them dynamicly to class view?
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
I did not add anything to class view.
I created the project from .cc and .hh files.
As far as I know, the class view should work automatically.
Shai Gutner
shai.gutner@schema.com
www.schema.com
|
|
|
|
|
Gutner wrote:
I did not add anything to class view.
So when it doesn't do it.do it by hand.
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|