TPECI's Q&A profile
Visual C++ calling managed function from unmanaged c++ causes exception
Hi, i have a problem with a my dll loaded as a plugin in external application (Bentley Microstation). I compiled my dll with /clr switch. The dll can be loaded, and functions that dont contain managed code can be executed, even code which uses COM interop for calling components in C# works. But when the application calls the function which contains managed code - it fails with a exception: First-chance exception at 0x7c812a5b (kernel32.dll) in ustation.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.. CALL STACK kernel32.dll!RaiseException() + 0x52 bytes [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll] msvcr80.dll!_CxxThrowException(void * pExceptionObject=0x00000000 ...Show All
Software Development for Windows Vista SqlTrackingWorkflowInstance lose ActivityEvents
I'm using StateMachineWorkflow,SQL Server 2000 SP4 on different computer in local newwork,DTC on both computer is enabled, WWF Beat2.2. I used SqlTrackingQuery to track workflow instance, and I found the SqlTrackingWorkflowInstances of the workflow instances created after application start lost all its events. ActivityEvents:count =0; UserEvents:count=0; workflowEvents:count=0. But SqlTrackingWorkflowInstances of the workflow instances created before application start is ok. My code as follow: //Add WorkflowRuntime Service string connectionString = "Data Source=RemoteSQLServer;Initial Catalog=ShareService;Integrated Security=SSPI"; SqlWorkflowPersistenceService persistence = new SqlWorkflowPersistenceService(co ...Show All
Software Development for Windows Vista capicom.dll -- redistributable?
I'm trying to figure out a way to redistribute tools that will allow end users to sign their installers and binaries. According to the SDK license, signtool.exe is not redistributable. It is my understanding that we cannot redistribute signtool.exe. However, it seems that signtool.exe calls capicom.dll -- and capicom.dll is redistributable and can sign binaries. But, the SDK redist.txt file doesn't list capicom.dll. However, other Microsoft web sites list Capicom as redistributable (e.g., http://msdn2.microsoft.com/en-gb/library/aa382434.aspx ). So, Is calling capicom.dll a recommended approach to signing binaries. And, is it in fact, redistributable Is there any backdoor options to redistribute command line tools or dlls that ...Show All
Software Development for Windows Vista X-FI mic problems
Hello all, i have posted on the creative forums aswell asking for help . I cannot get my mic working on vista ultimate and wondering if any one has managed to get there mic working with an x-fi sound card and if so post some help below . SILENTBOB This doesn't look like the correct forum to deal with this but as an FYI: I just installed Ultimate last night and downloaded the drivers from Creative and have the same problem. The Microphone shows as unavailable in Vista. Not sure why... ...Show All
Visual FoxPro appending to a grid
ok - this is kind of a weird question - is there a way to append to a grid in the background What I would like to do (if it's possible) is to still have functionality to my form while the program is taking the time to append. Does that make sense If so is that possible Forgive my inaccuracies - It's grabbing from an SQL Database and copying to a cursor which is bound to the grid. The basic reason why I need it is b/c when grabbing from larger databases, it's a stand still wait (sometimes up to 3-4 mins if the database is extremely large). I guess a more appropriate question would be how to grab asynchronously and display it like you had said The way it's running right now it waits till the entire thing is loaded and then displays... ...Show All
Visual C# Frozen DataGridViewRow at the bottom
Is there a way to have a row at the bottom of a DataGridView frozen This is having a Grid like this Item qty price aaa 1 10 bbb 3 30 ccc 1 10 ddd 3 30 TOTAL 180 And there is a scrollbar that will scroll on the items aaa,bbb,ccc,ddd while the headers and the total remain fixed. As fas as i know there is no easy way to this. but if theres a way it would be nice to know... Thanks ...Show All
SQL Server Migrating Data from MySQL
Hello I am looking for a way to migrate my data from a MySQL database to a SQL2005 Express data base. All of my MySQL Schemas only have 1 or 2 tables in them so I would imagine that it isn't that hard to do. I treid just exporting it to a CSV file with the intention of just using import/export in MSSQL but in the express edition, it ain't there. Like I stated all of my schemas are only 1 or two tables none are linked in any way they are independant table and the most records any one of the tables contain is around 250. Any suggestions hi a way to migrate is you import into Access and afzer them you build in SQL-Express the Table structure and import via ODBC the dates into the new table. I have this do ...Show All
SQL Server Service Listing Manager Question for Remus
Hi Remus - Thank you for your Service Listing utility. I am very new to S.B. I had an intern working for us do some research work into S.B. and I gave him your utility to use for the work I gave him to do. Here is what I am trying to do. Very simply, I want to setup a remote (target) server that many other source (initiator) servers will send messages to via S.B. I had the intern learn how to have a single initiator server send messages to the remote server. He used your utility to create the SQL script that needs to be run on both servers to get things set up, and it works correctly. The script below is what your utility created to be run on the remote server. The reference to 'SDDev2' below is a reference to the initiator (source) ser ...Show All
Visual Studio Express Editions Masked TextBox or Normal TextBox and Masked by Code??
Hello Every1 I want to have a textbox that allows only numbers and then allows only 4 digits. Is it better to use a Masked TextBox control or a TextBox which is masked by our code The code bellow is not working because when the textbox fills with 4 digits, it will be selected all and then it does`nt allow any number, Please Help me on this problem : Private Sub txtCode_KeyPress( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtCode.KeyPress Static Dim sintCodeLen As Integer If Len( Me .txtCode.Text) > 4 AndAlso sintCodeLen = 4 Then e.Handled = True &nbs ...Show All
Visual C++ error C2065: 'PCACTCTXW' : undeclared identifier
I did convert an application from vs6 to vs8 and then i got this error (seems a little like the DWORD_PTR thing...) Where could be the problem ------ Build started: Project: HydrotelKernel, Configuration: Debug Win32 ------ Compiling... [ ... ] // i'm skipping this part of the building... way too long AdoDatabase.cpp WINVER not defined. Defaulting to 0x0502 (Windows Server 2003) AdoRecordset.cpp d:\program files\microsoft visual studio 8\vc\atlmfc\include\afxcomctl32.h(32) : error C2065: 'PCACTCTXW' : undeclared identifier d:\program files\microsoft visual studio 8\vc\atlmfc\include\afxcomctl32.h(32) : error C2146: syntax error : missing ')' before identifier 'pActCtx' d:\program files\microsoft visual studio 8\vc\atlmfc\include\ ...Show All
Audio and Video Development handling event other than nodeSet
<timing clock="page"> <seq> <cue select="//body" dur="5s"> <event name="doTest"/> </cue> </seq> </timing> <body > ...Show All
Windows Forms How to hide application's entry in the Add/Remove Programs
In setup and deploying project using C# custom action, is it possible to hide the installing application's entry in the Add/Remove programs Hi! Is there any way to configure the msi so that you can install the application as many time as you want on a machine, and never see it in the add/remove programs panel Thank you. ...Show All
SQL Server Call to Webservice from a Reporting Action in SSAS
Is it possible to call a webserive from a reporting action in SSAS What I am trying to do is create a reporting action that will schedule a report to run at certain time by calling the CreateSubscription Web service of Reporting services. Any advice would be much appreciated. Does anyone have any suggestions or perhaps another angle that I could approach this problem Thanks 1. I am not exluding the possibility this to be a bug. We also ran into an issue with large reports where the reports will time out. The forthcoming SP2 is expected to fix this. 2. Also, I would suggest you contact the Support Center ASAP and request a hotfix. The best thing will be if you could send them a test harness. ...Show All
Software Development for Windows Vista Custom validator causes error in designer fro bound property.
Hi! Something strange happening to my validator. I wrote custom validator which checks 2 attributes: if ((activity.RecipientRole == Guid .Empty) && (!activity.IsBindingSet( CreateTaskActivity .RecipientRoleProperty)) && (activity.Recipient == Guid .Empty) && (!activity.IsBindingSet( CreateTaskActivity .RecipientProperty))) { validationErrorCollection.Add( ValidationError .GetNotSetValidationError( CreateTaskActivity .RecipientProperty.Name)); validationErrorCollection.Add( ValidationError .GetNotSetValidationError( CreateTaskActivity .RecipientRoleProperty.Name)); } I bind one property and other is left as Guid.Empty. When I build the workflow I don't see any validation errors (chec ...Show All
Windows Forms Dropdown List
Is there a way to make a Dropdown List typing enabled in a web application. Thank you in advance hello U_T_A I dont thnk that we can attempt this,because its against the design of that control ,but again why did u actually need such a functionality ...Show All
