|
What you mean.... you need to install the files in MTS via VC or you have build the COM in VC and want to install on MTS ?
any ways install the component on MTS and then export the package. which will give you the installation package for clients. which you can run to install on clients..run it through your VC program...
|
|
|
|
|
I want to perform all the steps of installation in MTS, exporting the package programmatically. Need a one-click go stuff.
|
|
|
|
|
well Pavneet I dont know exactly why you want to do this. What I used to do is the following
on my test machine I create a package in Transaction Server. then I export it as a server side package. Now this package can be installed on client and server both. So your setup is ready for transaction server for client. Now go to your Setup builder (install shield ,wise or dotnet built-in package builder ) and include this package to run at the end of the setup and give that package to client. when CLient will install the application the Components will be installed automatically with that. Why you want that client will install your application then he will get a new package from MTS to install on different machines.
if this helps you then great if not then wait for some one else who knows how to do this....
|
|
|
|
|
Hye Guys
I have deployed one distributed project. Client Side installation Plus Server Side (Transaction Server). when I use the object it works fine. next day it was not working without any reason (Server Components only). I tried hard uninstalled/reinstalled not working and some how accidently I came to know if I change the date of the system to the installation date. then it works fine. So I changed the date to installation date which worked successfully. So every time I have to run the application I need to change the date of my machine then it works fine other wise error
ActiveX Object Component create Object..429...
is there any communication or relation between date and COM Objects ??????
if yes which looks under my scenrio... then what is the solution...
|
|
|
|
|
Any idea how to embed an exectuable inside another executable, and then from with in your program, call the embeded exectuable with out creating another process or wrting the embed exectuable to disk?
I have a C++ program (straight C++, not managed). It has some logic and then depending on a number of conditions, ShellExecute()s another exectble file (client.exe), which happens to be a .net file. Is there anyway that I can add this client.exe file as a resource of my C++ program, and then call the beginning of the code from within the C++ program, so I wouldn't have to extract the resource or create a new process
Please help
Thanks,
Jason A. Donenfeld
PS: This is what I have now:
<br />
#define WIN32_LEAN_AND_MEAN<br />
#include<br />
#include<br />
#include<br />
<br />
#define INSTANCEMESSAGE "ShowZIM"<br />
#define WINDOW_TITLE "ZX2C4InstantMessenger"<br />
#define MUTEX_STRING "Local\\ZX2C4IM"<br />
#define FILE "client.exe"<br />
<br />
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)<br />
{<br />
if(_tcscmp(lpCmdLine,"clone"))<br />
{<br />
CreateMutex(NULL,TRUE,MUTEX_STRING);<br />
if(GetLastError()==ERROR_ALREADY_EXISTS)<br />
{<br />
SendMessage(FindWindow(NULL, WINDOW_TITLE), RegisterWindowMessage(INSTANCEMESSAGE), NULL, NULL);<br />
return 0;<br />
}<br />
}<br />
ShellExecute(NULL,NULL,FILE,lpCmdLine,NULL,SW_SHOW);<br />
return 0;<br />
}<br />
|
|
|
|
|
Why would you want to embed an executable?
If you need your code to be in your main executable, then compile it in at source level. I.e., call your code via function(s).
--
Schni Schna Schnappi! Schnappi Schnappi Schnapp!
|
|
|
|
|
I'm trying to have the program start in C++, and then if certain conditions are met, I want it to start calling the .net code. .Net is way slow, so I want the conditions to be checked with C++, so the runtime isn't started if the .net code isn't to be executed. I know I could just ShellExecute another executable, but that seems so sloppy.
|
|
|
|
|
Hi,All
I am developing a GDI graphics ActiveX Control with atl, it has a picture property.How can i set the picture value when i create the bitmap every time in the function OnDraw, the following is the my snippet code:
HRESULT OnDraw(ATL_DRAWINFO& di)
{
Graphics graphics(di.hdcDraw);
RECT& rc = *(RECT*)di.prcBounds;
Height = rc.bottom-rc.top;
Width = rc.right-rc.left;
Bitmap bmp(Width,Height);
Graphics * pMemoryGraphics=Graphics::FromImage(&bmp);
MyImage * img= new MyImage();
img->DrawGraphics(pMemoryGraphics); // draw the graphics
graphics.DrawImage(&bmp,rc.left,rc.top);
// here i created the bitmap "bmp", how to pass it to m_mPicture?
// CComPtr<ipicturedisp> m_pPicture;
I am very appreicated if someone can help.
Eric
|
|
|
|
|
I am having error as displayed below :-
System.Runtime.Remoting.RemotingException: Cannot load type MyRemoteCom1.MyRemot
eCom, RemoteComObj.
at System.Runtime.Remoting.RemotingConfigInfo.LoadType(String typeName, Strin
g assemblyName)
at System.Runtime.Remoting.RemotingConfigInfo.GetServerTypeForUri(String URI)
at System.Runtime.Remoting.RemotingConfigHandler.GetServerTypeForUri(String U
RI)
at System.Runtime.Remoting.RemotingServices.GetServerTypeForUri(String URI)
at System.Runtime.Remoting.Channels.Http.HttpRemotingHandler.CanServiceReques
t(HttpContext context)
at System.Runtime.Remoting.Channels.Http.HttpRemotingHandler.InternalProcessR
equest(HttpContext context)
I can't seem to be able to invoke a method that is actually a serviced component located in another server by using .Net Remoting
My codes are as such :-
For my client application calling the object :-
IMyRemoteCom objIMyRemoteCom = null;
try
{
objIMyRemoteCom = (IMyRemoteCom)Activator.GetObject(typeof(IMyRemoteCom), "http://127.0.0.1/ComRemoteServer/MyRemoteCom.rem");
Console.WriteLine(objIMyRemoteCom.RetrieveString());
}
catch ( Exception ex )
{
Console.WriteLine(ex.Message.Trim());
}
finally
{
objIMyRemoteCom = null;
}
Console.ReadLine();
For my COM+ Object :-
namespace MyRemoteCom1
{
///
/// Summary description for MyRemoteCom.
///
#region COM+ Declaration
[Transaction(TransactionOption.Supported)]
[Guid("16073B03-F2DF-4028-AFB8-8D001DB6F62A")]
[EventTrackingEnabled(true)]
[ObjectPooling(true, 2, 1000)]
#endregion
public class MyRemoteCom : ServicedComponent, IMyRemoteCom
{
#region Public : Constructor
public MyRemoteCom()
{
//
// TODO: Add constructor logic here
//
}
#endregion
#region Public : String : RetrieveString
public string RetrieveString()
{
return "MyRemoteCom Version 1.0.0.0";
}
#endregion
}
}
For my interface object :-
namespace MyRemoteCom1
{
///
/// Summary description for Class1.
///
public interface IMyRemoteCom
{
string RetrieveString();
}
}
For my config :-
wellknown mode="SingleCall" type="MyRemoteCom1.MyRemoteCom, RemoteComObj" objectUri="MyRemoteCom.rem"
~MicDevNet~configuration>
Please help
~MicDevNet~configuration>
Please help
~MicDevNet~
|
|
|
|
|
Dear friends,<br />
<br />
I am using Windows 2000 Professional & XP 2000<br />
And I want to Access my Hard disk Sectors & Cluster, <br />
I Used CreateFile ("\\\\.\\C:",….) & ReadFile () Functions for read a Particular Drive only Sectors<br />
<br />
I Used CreateFile("\\\\.\\PhysicalDrive0",….) & ReadFile() Function this Cannot work Handle Cannot Create Successfully<br />
<br />
Now My problem is that I want to read MBR & Some Other Starting Sectors of My Hard disk Please Tell me what Can I do for That.<br />
<br />
Advance <br />
Thanks <br />
Shaizi
|
|
|
|
|
I have problem with ATL COM exe
First I build the exe in Win32UnicodeReleaseMinDependancy settings , seems to be allocating 13324 k virtual memory (VM) at startup and then it allocates 1.8 GB which grows up to 1.9 GB of VM
but at the same time exe build in Win32UnicodeDebug settings allocates only 1160 k at startup and allocates 1672k VM , which increases slowly
Previous version of the same exe is working properly (allocating less amount of virtual memory ) and I compared all the project setting of new exe with older one both are same
Can any one suggest me why exe build in
Win32UnicodeReleaseMinDependancy allocates 1.9 Gb of virtual memory ???
|
|
|
|
|
Programming Error? Doing things like abusing dynamically allocated memory (misusing string objects, etc.) will do things like that.
Also, double check for dangling (un-released) interface pointers. For example, I once had an issue with an OleDB object that was getting binary data from a database table. I was not releasing the IStream interface pointer I was getting back, and after about 20-50 records, the memory allocations started to skyrocket!
Behaved completely differently under DEBUG than RELEASE.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
I've made an OCX control. It works fine OK.
I want to instanciate that OCX when a .fbx file is dropped from file explorer on an Office application ... How can I do that?
Ex: In a PowerPoint slide I want to drop from file explorer myfile.fbx and this will instanciate
my FbxViewer.ocx in the PP slide and myfile.fbx will be loaded into my OCX control.
Thanks
Danny
______
|
|
|
|
|
|
use Component Services in Administrative tools for COM + deployment,
|
|
|
|
|
Dear friends,
I developed an ActiveX control using ATL and Visual C++ 7.0. One function exposed by the control takes too many arguments, around 15 in number. As scuh i want to pass structure instead of too many arguments.
But ATL is not giving me any option to add my structure as an argument ot the exposed function ? Please tell me what is the solution of this problem ?
Also i want to use my control by VB/JAvaScript etc. So what is the better way to solve this problem
Imtiaz
|
|
|
|
|
Scripting languages do not support structures.
|
|
|
|
|
That's like saying "No car can go faster than 200 km/h".
--
Schni Schna Schnappi! Schnappi Schnappi Schnapp!
|
|
|
|
|
Jörgen Sigvardsson wrote:
That's like saying "No car can go faster than 200 km/h".
Brilliant observation! A thousand pardons.
VB Script and JavaScript (the scripts mentioned by the original poster as being pertinant) do not support structures.
Robert
|
|
|
|
|
I saw the references to VBScript and JavaScript after I posted my reply. I knew then that you meant only those script languages.
--
Schni Schna Schnappi! Schnappi Schnappi Schnapp!
|
|
|
|
|
You may have to use safe arrays for this.
« Superman »
|
|
|
|
|
Hi Imtiaz ,
Refer to this article from MS-MSDN.
Building ActiveX Controls for Microsoft Windows Using the Active Template
Library
This article is talking about something, which you are looking for.
As far as VB is concern, it must work !
I dont have much idea about scripting languages
This might ease your difficulties !
Cheers,
Vishal
|
|
|
|
|
Dear Friend,
I tried my best but i was unable to find the article you mentioned. MSDN search is giving me tons of result while i search the topic you mentioned.
Can you please give me the link of this topic.
Thanks
Imtiaz
|
|
|
|
|
|
I need the realization of [b] _variant_t(TEXT("a")) on MASM. [/b]
Or any kind of [b] _variant_t() [/b]
Also I need [b]_bstr_t(urllink) [/b]
Please help if you can!
|
|
|
|