|
You can try this[^]. Not sure if it's what you're after tho.
|
|
|
|
|
Hi,
The link provided does not match my requirement. my requirement is installers like[Macromedia products], in which [ all installable components and source codes are combined into an single file] on Clicking this should extract and install all into the computer and an unistaller should be provided on Start menu , to uninstall all the components installed using this installer.
Regards,
Manowj
|
|
|
|
|
Play with it a bit. You'll get what you're looking for.
|
|
|
|
|
Hi,
I have tried Inno setup, it is not accepting Exe files gives error, it uses only script files with Iss [extensions]. Is there any Alternative other than this?....
-- modified at 7:46 Monday 14th August, 2006
Regards,
Manowj
|
|
|
|
|
manowj wrote: it is not accepting Exe files
The link I gave you is to the same InnoSetup that I've used successfully in the past. It definately does accept exe files.
An alternative would be to write your own installer, failing that try this[^] and you'll find this[^].
|
|
|
|
|
Hi,
I want to develop a dll in vb.net. And that Dll id registered in windows environment calling from outside of the .Net.So i want to register that dll using regsvr32 command. So plz tell how to create a dll to register in windows.....
nothing
|
|
|
|
|
Click on File > New... > Windows Class Library.
Add functionality and a smattering of love.
Compile.
Voila.
|
|
|
|
|
Hi all
I want to call one Windows Application developed in VB.NET from windows service.That should display like pop-up windows application whenever i start the service manually .What method i have to use.
I tried like this but i not get solution :
First i created the one simple windows form application using vb.net available in one specific path.
After that I created the service using vb.net and installed and started.
I want to display that application when i start the service from start event.
This coding i did in the service start event
Method 1:
Dim startInfo As System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process
startInfo = New System.Diagnostics.ProcessStartInfo("C:\file.exe") //C:\file.exe is developed windows applicaton
pStart.StartInfo = startInfo
pStart.Start()
pStart.WaitForExit() 'Your code will halt until the exe file has executed.
Method 2 :
System.Diagnostics.ProcessStartInfo("C:\file.exe")
Method 3:
Shell("C:\file.exe");
In method 1 & 2 application started as process. not displaying the application. i want to diplay the applicaion.
Please help any one of you faced like this problem
Thanks,
Prabhudurai K.
-- modified at 2:01 Monday 14th August, 2006
PRABHDURAI
|
|
|
|
|
prabhudurai wrote: Method 2 :
System.Diagnostics.ProcessStartInfo("C:\file.exe")
Didn't this throw you a compile error?
I think what you're actually looking for is System.Diagnostics.Process.Start("C:\File.exe")
|
|
|
|
|
This is because Services run under their own desktop, that you can't see. Go into the Services manager, find your service and get Properties on it. Click the LogOn tab, then make sure the "Allow service to interact with the desktop" checkbox is checked.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
how to view data grid in ascending and descending order?
I have try create a button and the coding here:
Adodc1.Recordset.Sort = Desc
DataGrid1.Visible = True
Adodc1.Refresh
but nothing happen when i click it. is that the correct command?
-- modified at 0:59 Monday 14th August, 2006
|
|
|
|
|
Hi,
Check with Datagrid property [onSort] in property window.
Regards,
Manowj
|
|
|
|
|
Hi,
Check in Property Window of Datagrid [onSort].
Regards,
Manowj
|
|
|
|
|
please mention the version of ide u use.in vb 2005 this property is available on property window.go n chk there
|
|
|
|
|
Hi,
I have two kind of report that i want to show in one crystal report viewer, for selecting the report i make another form, this what i do
1. I create 'FormControlReport' for selecting the report
2. I put to datetimepicker in the form named 'From' and 'To'
3. I put 1 combobox named 'Department', it use to select department
4. I put 1 listbox named 'listReport', i use to select report
5. I put i commandbutton name 'ViewReport'
6. I create another form name 'FormViewer'
7. I put Crystal report viewer in the form, i name it 'CRV'
Now, in the FormControlReport i use datetimepicker to select period and combobox to chose department and i chose one of the report that i want to show by selecting report in listReport, when i click the ViewReport, it send command to run the report in FormViewer base on the parameters that i define in FormControlReport, it give me headache since a week
Anybody can help me with this problems please,
Abbas
|
|
|
|
|
CRV.ReportSource = OtherReport
|
|
|
|
|
Subject says it all, I'm looking for something that I can easily use to reproduce as closely as possible the control used in the firefox downloads window. I figured it'd make a great layout for a window for handling file transfers in an application. Does something like this already exist, or at least something close to it?
|
|
|
|
|
Hello, I do appologise for the length of this question, but I cannot explain with providing documentation.
For days now I have been trying to write a COM component in VB VS 2005, I have discovered the world of interop amongst things. The application I am working with can call external COM or DLL module which is what I am trying to create (see below for "Documenation".)
My Code / process
New Project, Class -> Add item COM component -> add function
/* simplified calling the function should return what it is passed
Public Function test(byval hello as string) as string
return hello
end function
Create a key using sn.exe, modify assembly file, build project. Copy files onto application server, run regasm /tlb:*.tlb *.dll -> run gac util /i *.dll both return successful. Using oleviewer I can see my class and the method / function. When I test with the application it returns negative. Although I have tried a 100 things this question is already too long
Using VB6 I can add a reference to my module and call the function OK.
Documentation
When a DLL or COM custom function is called, it is passed a configured subset of the current contact data as a character string. Similarly, the custom function is expected to return a set of updates to the contact data as a character string. The following topics provide direction on working with the contact data programmatically.
● Datatype and declaration
● Contact data string layout
Type Sample declaration
COM HRESULT = CustomFunction(BSTR bstrInput, BSTR bstrOutput )
DLL long = CustomFunction( char * pInput, char * pOutput )
B.1.1 Datatype and declaration
Parameters storing the contact data input and output parameters must be declared as single byte character strings in DLLs and as BSTR (wide) character strings in COM modules. Table B-1 shows sample declarations:
The type of character data that may be stored and passed in both the input and the output parameters is restricted to ISO-8859-1 compatible characters.
● When the interface type is a DLL component, the characters must be ISO-8859-1 single byte characters.
● When the interface type is a COM component, the parameter contents must be encoded as UNICODE codepage 28591 (ISO 8859-1 Latin 1).
B.1.2 Contact data string layout
Contact data is passed to and returned from custom functions in character strings. The first two characters in the string store the number of key/value pairs and each subsequent block of 160 characters stores a key/value pair. Up to 99 key/value pairs can be passed into and returned
from the custom function. Within each record, the first 32 characters are reserved for the contact data key and the remaining 128 characters are reserved for the contact data value. Unused bytes within these key and value string fields must be padded with NULL values (binary zero).
For example, Figure B-1 shows the layout of the character string used to pass the following contact key/value pair into a custom function:
● Key: PIN, Value: 1234
Figure B-1Character string layout for contact data passed to a custom function The output string passed back to HPPC from the custom function would be formatted using the same rules. The number of key/value pairs passed within the input parameter and the output parameter may differ. Figure B-2 shows the layout of a character string used to return contact
data from a custom function. The contact data from Figure B-1 has been updated to include an address, possibly obtained by a database lookup.
● Key: PIN, Value: 1234
● Key: Address, Value: 2211 High Street
Figure B-2Character string layout for a contact data returned from a custom function
B.2 Runtime restrictions
When creating custom functions, you should account for the following runtime issues:
● Execution time restriction
● Exceptions
B.2.1 Execution time restriction
When called, the COM module or DLL function must finish execution within five seconds.
B.3 Sample DLL source code
The following is an example of the source code for a custom function called within a DLL.
CustomFunctionExampleDLL.cpp : Defines the entry point for the DLL application.
//
#include <stdlib.h>
#include "stdafx.h"
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
extern "C"
{
__declspec(dllexport) long CustomFunctionExample(const char * dataIn, char *
dataOut)
{
// Determine number of input parameters
char numParametersAsString[3] = {dataIn[0], dataIn[1], '\0'};
const unsigned int numParameters = atoi(numParametersAsString);
const unsigned int HEADER_SIZE = 2;
const unsigned int KEY_SIZE = 32;
const unsigned int VALUE_SIZE = 128;
// Read each input parameter
for (unsigned int i = 0; i < numParameters; i++)
{
char key[KEY_SIZE] = {0};
char value[VALUE_SIZE] = {0};
const unsigned int keyIndex = HEADER_SIZE + numParameters * (KEY_SIZE
+ VALUE_SIZE);
const unsigned int valueIndex = keyIndex + KEY_SIZE;
memcpy(key, dataIn + keyIndex, sizeof(key));
memcpy(value, dataIn + valueIndex, sizeof(value));
}
// Return a single output parameter
dataOut[0] = '0';
dataOut[1] = '1';
char outputKey[KEY_SIZE] = {'O', 'U', 'T', '_', 'K', 'E', 'Y', '\0'};
char outputValue[VALUE_SIZE] = {'O', 'U', 'T', '_', 'V', 'A', 'L', 'U',
'E','\0'};
memcpy(dataOut + HEADER_SIZE, outputKey, sizeof(outputKey));
memcpy(dataOut + HEADER_SIZE + KEY_SIZE, outputValue,
sizeof(outputValue));
return 0;
}
}
B.4 Testing your custom function
After writing and compiling your custom function DLL or COM Module function, when
configuring the Custom Function component that calls your custom function, you can test
whether your function can be located and loaded properly. Clicking the Test button on the
General tab of a Custom Function component dialog box, will initiate loading of the function
specified in the Interface type, Function name, and Module location boxes. This test does
not execute the DLL or COM Module function.
GlenCope(my brain hurts)
|
|
|
|
|
GlenCope wrote: Using VB6 I can add a reference to my module and call the function OK.
Did you add a reference to it in .NET? I'm pretty sure you would have and my apologies if the question is condescending but I had to ask.
If I understand your problem correctly, you are compiling a class to expose to COM in order to share amongst assemblies but the COM component your creating isn't returning the results you were expecting?
|
|
|
|
|
Thanks for your reply. I contacted the vendor only to find out they require CLSID in order to call the component. My code was indeed correct all along. I do intend posting an article on this topic.
|
|
|
|
|
It'll be an interesting read.
|
|
|
|
|
Hello... is it possible to have justify alignment in a multiline textbox?
i want to make a movie database and i have a textbox that shows the plot and i'd like to have it with justify alignment. is any other way except using a textbox to present the plot?
thank you in advance
|
|
|
|
|
I don't believe a textbox supports this, no.
You should only use a textbox or rich textbox if you want the text to be editable. Otherwise, use a label.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: You should only use a textbox or rich textbox if you want the text to be editable. Otherwise, use a label.
Yep. He's right.
|
|
|
|
|
but again label doesnt support wrap word with justify alignment... it is the same with textbox.. only difference it supports Trasparent...
|
|
|
|
|