1 Attachment(s)
Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)
Note: I don't speak english very well :blush:
...
well i don't know where to start..
ok.. i made a program using "comdlg32.ocx" and then a made another program wich contain a resource file....
this resource file contain "comdlg32.ocx
and i make it EXE..
and when i start the program.. the OCX files will go to the system directory... :)
but when i start the program that i use in it the OCX file,the program dosn't work (but the comdlg32.ocx is in the system directory :confused: ) the picture of the message box is in the Attachement
and plz don't tell me to use a setup program or any thing like that :mad:
i hope that you understand what i mean cause i don't speak english very well..
1 Attachment(s)
Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)
Click on Add-ins -> Add In Manager, and click on the Package and Deployment Wizard, (not highlighted, but shown below). Double-click on it, and set it to Load at Startup. Then, you can read this tutorial on how to use it. Welcome to the forums. Good Luck!
http://www.developerfusion.co.uk/show/27/1/
Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)
First..thx for ur help
but i said ("and plz don't tell me to use a setup program or any thing like that")
you maybe didn't understand what i mean.... :confused:
the only raison that made me ask this question cause i know that there is an answer...
cause i see it in another program (i couldn't put it in the attachement cause they tell me (exemple.zip:
File Too Large. Limit for this filetype is 500.0 KB. Your file is 558.9 KB. )
download from here:
http://www.geocities.com/kkanj22/exemple.zip
this file contain 3 ocx files..and when u run it..the program will extract them to the sys dir...(that is what i did..but like i told u before it appear an error)..
Conclusion: I want to know how to made a program like that :)
and maybe then you'll know what i mean(and thx for ur help) :)
plzzzzzzzzzzzz...i really need the answer for this question :cry:
Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)
Do you mean how to register it?
VB Code:
REGSVR32 \MyPath\MyControl.OCX
I thought the P&D may be too dificult, so I tried to simplify it.
Also, keep in mind that not all ocx's can be given away freely, and don't always install everywhere that you want them to install.
1 Attachment(s)
Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)
:cry: :cry: :cry: :cry: :cry: :cry:
I don't know what is the problem any more :cry: :cry:
i don't know if the problem is registartion + when i write that is Start>>Run
REGSVR32 "c:/WINDOWS/SYSTEM/COMDLG32.OCX"
they tell me (in the attachement)
but whyyyyyyyyyyyyyyyyy(the Ocx file is in the sys dir)
what should i do..
this problem is driving me crazy :cry: :cry: :cry: :cry:
Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)
Which version of VB do you have?
Sorry, I don't run other peoples .exe's. The problem may be that the control is already registered.
You could try unregistering it.
and then try registering it again. it seems odd that the program won't run, though. it may use a different version, in which case you may harm your system.
Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)
regsvr32 c:\windows\system\comdlg32.ocx (for win 9x)
or
regsvr32 c:\winnt\system32\comdlg32.ocx (for win me,xp,2000,nt)
if you're not sure where is comdlg32.ocx then do search file then re-run that command (don't forget to also specified the path)
good luck
Winanjaya
Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)
dglienna something is missing the regedit can help in most
Re: Very Important problem in OCX & Resource (plzzzzzzzzzzzzzzzzzzzzz)
What on earth?????? :confused:
Why are you placing OCXs in your EXE and then extracting them?
Why? I am totally confused. What benefit does this have?
I would seriously not use this method as you have the ability to trash a PC...
What's wrong with a setup package?
Woka