Blast's Q&A profile
Visual C++ GetActivePane no longer works in VC++ 2005
I used the CSplitterWnd::GetActivePane(int&, int&) function and it worked fine with VC++ 6.0. Recently I started the process of moving the code to the new VC++ 2005. Under VC++ 2005, the code compiled OK but it does not run because the GetActivePane function is somehow made obsolete (see afxext.inl). Any idea why So how do I get this function back or any ways to get around of this problem Thanks Ted I think new function requires pointers instead of references: GetActivePane( & x, & y) . So it seems you have to add " & ". ...Show All
Software Development for Windows Vista Setting the CorrelationToken
My ExternalDataExchange service has "instanceId" as the CorrelationParameter, "Start(instanceId)" method as the CorrelationInitializer, and a ResponseReceived event with event args including InstanceId as the CorrelationAlias. (A very common scenario). If I am using a CallExternalMethod activity to initialize the correlation and the correlation parameter is passed in on the method call, why does the designer/compiler insist that I supply a value for CorrelationToken on the activity Am I correct in assuming that the CorrelationToken and CorrelationParameter are synonymous Or do they have different purposes The reason I ask is that the event delivery is failing and I cannot figure out why. I have verified that the ...Show All
Smart Device Development pb with TCHAR strings in a DLL / Today screen
pb solved ...Show All
Windows Forms GAC, Registering .NET DLL's using REGASM
Hi, Forgive me if this is in the wrong forum, as I don't have a much experience in this area. I have a question regarding a possible product we may carry, and was wondering if anyone could shed some light on something. Is it standard to create a .NET DLL that requires registration via regasm.exe I was under the impression that regasm.exe was intended for unmanaged COM dll's, and that if I would like to create a .NET DLL, then the only way to do so, is to create an assembly key file and associate it with my assembly and recompile the DLL. I guess my next confusion is how does the msi installer, which installs the DLL, know to register the DLL in the GAC You are possible confusing Regasm.exe with Gacutil.exe. Regasm.exe is only ...Show All
Visual Basic WebBrowser Refreshing Problem
I've got a WebBrowser control in my current program that, every minute and a half, loads a web page and parses some string information out of it. The problem is, after running for a while, it stops reloading the page; everytime it 'loads' the page, it loads the exact same contact the page had the last time it was loaded, although the actual page content has changed. Viewing the page in IE outside the program, I can see visually that the site really has changed; but the program continues only to see an older version of the page. Why is this happening, and how can it be fixed Note: the problem persists when I log on/off the computer, and when I restart the computer entirely. It doesn't happen for all pages being dealt with in thi ...Show All
SQL Server Cannot get SQL 2005 RS up and running
I am attempting a migration to RS 2005. I restored the ReportServer and tempdb databases over to the new server. The config manager says the ReportService service is running. When I try to view the reports in a browser I get a report server is not responding error. Thanks Richard aspnet_regiis.exe is under %SystemDrive%\WINDOWS\Microsoft.NET\Framework\v2.0.50727. By "not recognized" did you mean you can't find it If so please check if ASP.NET is installed, and reinstall .Net framework if necessary. ...Show All
Smart Device Development Problem to install CF 1.0 automatically.
Hi everybody, I need to get some help with CF 1.0 automatic installation on device. I have bat file with the script: ECHO Installing COMPACT FRAMEWORK... \Windows\wceload /noaskdest /delete 0 /noui \TEMP\netcf.all.wce4.ARMV4.cab When we cold boot device, installation begin,but it is asking for overwriting framework dll files (Yes, Yes to all and so on). I need to install framework without any questions. Is there some way to do that Thanks for help, Iouri. None I'm aware off – WCELOAD produces these messages and it seems they can not be suppressed. You might try /silent switch but it probably won't work. Possible solution would be to write an application (native) to detect the ...Show All
Visual Studio 2008 (Pre-release) Working with Soap Messages....
I am new to .Net and development as a whole and I am stumped. I have been asked to create a web site that will generate Soap requests and send them to web services, receiving the response of course. I have looked through many different pages on the internet and I have found some pages, but I have not yet been able to figure out something that will do what I need. Is there anyone who can direct me to a resource that may help me figure out how to solve this issue Thanks in advance.... Take a look at this documentation: http://msdn2.microsoft.com/en-us/library/w3h45ebk.aspx Dave ...Show All
.NET Development SQL index question (C#)
Hello, im quite new to MS SQL. My question is how to generate indices MySql has an attribute AUTO_INCREMENT, but MS SQL doesn't seem to have this. Example: I have a user table with [Id] und [Username] and a mail table with [UserId] and [Address] If I want to add a new user, can the database generate the new Id itself. And if, where do I get this new index from for adding a mail address Or do I have to generate the new index myself If yes, how resolve the next index number extra query before the insert, to get the last index thanks and greets from germany! Dirk And when I do the INSERT from a managed stored procedure int index = (int)sqlCommand.Parameters["@@identity"]; ...Show All
Windows Forms Grid Control
Hi, I am trying to convert from VB6 to VB.Net. I have hit a problem with a grid; I used MSFlexgrid and MSHFlexgrid in conjunction with a textbox in VB6 but cannot find a replacement in VB.Net. I have tried a .Net datagrid but it doesn’t seem to do all the tasks I need. Is there a control that I can use as an entry grid It needs: No focus in the grid cells. Read only cells. A way to enter results into read only cells from figures entered by user. When clicking cells, open another form. Calculate the sum of amount added in a column. The datagrid and datagridview can do what you want. Take a look at the datagridview faq and the windows forms faq for some tips. ...Show All
Windows Forms Disappearing Menus
I've got a MenuStrip and a ToolStrip where some of the items in them have graphics from the resource file. I have deleted one of the graphics from the resource file that wasn't used in any of the menus. But now all the items from the MenuStrip and ToolStrip have disappeared. I have looked at the form.Designer.cs code and the code is still in there for the menus. Can anyone help Hi,grnr_r This case has been discussed in the following topic,please have a look at it: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=916035&SiteID=1 Hope this can be help you.Regards. Ye ...Show All
Software Development for Windows Vista Activity binding to a dynamic property.
I have seen custom activity examples where dynamic properties can bind to dependancy properties on other activities. Is there any way to create dynamic properties of potentially different types which will show up in the activity reference dialog and can be bound to from other activities If not what alternative might be available The dialog that allows you to bind dependency properties to other properties requires the target to be assignable from the source. If you have a custom activity that has property Foo that is typeof(Bar) when you launch the dialog to set the property you will only be able to select a variable of the workflow or property on another activity that IsAssignableFrom(Bar). Custom activity ...Show All
Smart Device Development Is .NET Compact Framework 2.0 supports Generics?
Hi guys, I got this exception at run time after i deployed my application, System.MissingMethodException was unhandled Message: Could not load type 'System.Collections.Generic.Dictionary`2' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC'. There is no design-time error, and I'm using the .NET Compact Framework 2.0 SP1. Thanks in advance. Hiya I can use this line: System.Collections.Generic. Dictionary < string , string > d = new Dictionary < string , string >(); on my device, so generics er supported. Maybe you should try to re-deploy the .net framework on your device Best Regards ...Show All
.NET Development FTP w CF 2.0
Hi all, I am getting an odd error during an FTP. It happens completely randomly. I can sometimes ftp 50 files with no error, and other times 2 errors in a row with the same files. This machine can FTP via CF 1.1 without error as well as with any other FTP method I have tried. Like I said it only happens with the 2.0 and I am at a loss. Any ideas Here is the error; System.Net.WebException: The remote server returned an error: (501) Syntax error in parameters or arguments. at System.Net.FtpWebRequest.SyncRequestCallback(Object obj) at System.Net.FtpWebRequest.RequestCallback(Object obj) at System.Net.CommandStream.Abort(Exception e) at System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage) at System.Net.FtpW ...Show All
SQL Server Distribution agent insufficient permissions
Hi, I am trying implement replication and having problem when creating push subscription to an existing transactional replication publication. The distribution agent is failing to run its job with the error: Agent message code 14260. You do not have sufficient permission to run this command. Contact your system administrator. I followed the http://msdn2.microsoft.com/en-us/library/ms151868.aspx article instructions when I set the distribution agent properties What did I miss The following is the step error message: Date 1/12/2007 2:30:01 PM Log Job History (105342-DB3\PROD-MOMA-ArchivedTransactions-105337-DEV2-15) Step ID 2 Serve ...Show All
