Martin Lynch's Q&A profile
Visual C++ Common controls manifestdependency in stdafx.h
If I create an MFC application with VS 2005 App Wizard then it puts the following into stdafx.h: #ifdef _UNICODE #if defined _M_IX86 #pragma comment (linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"" ) #elif defined _M_IA64 .. etc. #endif #endif The effect of this is that a Unicode app gets the XP look and a non-Unicode app doesn't. If I remove the #ifdef _UNICODE then the non-Unicode app gets the XP look. So why is the #ifdef _UNICODE in there I have a large non-Unicode app (it will become Unicode in time, but not just now) which I would like to give the XP ...Show All
Visual C# create ATL dll using C++ .NET 2003
Hi, I need help for a problem. I am trying to creat a ATL dll using C++ (VC7) from .NET 2003 and access the dll from C#. New Project -> ATL Project -> Add Class (ATL Simple Object) -> Add a Method to the interface. I want to send a number to the dll which manipulates it and returns it back to the C# The problem is the out, retval field in the Add Method field are disabled (in the Add Method tab). I try to manually add them in the files. [id(2), helpstring("method myatlp2")] HRESULT myatlp2( float a, [out,retval] float *b); It gets compiled but in my C# I can only see - myatlp2( float a) ( I've tried add reference from both COM and NET wrapper) Any thoughts &nb ...Show All
Software Development for Windows Vista Is it possible to call a public method of a Workflow WebService from a Class
Hi I am trying to call a webservice from workflow asynchronously. The response of the WebService will be in a class. I want to call the workflow webservice from that class and place the response in a public method. I have added a webreference of the workflow webservice in that class, created an instance for that and trying to access the public method in that. But I am not able to access public method in workflow webservice. Is there any way that I can call workflow webservice and access the public method in it. or is there any way that I can put my response(which is in a class) of the webservice (which is invoked asynchronously from a workflow) after some activities are executed. Please help me anybody. Thanks in advance. ...Show All
SQL Server ODBC datasource wont work on report server!!
Hi, I have VS2005 and sql server express and ive created some reports using sql server as a backend. everything works as it should. THEN... i created a report that uses a system DSN odbc source and it works in VS2005 it works fine. i have deployed it to the report server and the datasource appears t be there, but when i try and run the report i ge the following message An error has occurred during report processing. An attempt has been made to use a data extension 'ODBC' that is not registered for this report server. anyone got any ideas how i can make this work i have tried to find an explanation using google, but i cannot seem to see any thing that answers the question. Regards, Russ ...Show All
SQL Server documenting SSAS project
Hi Is there an easy way of documenting a SSAS project i.e. producing a document that describes all the cubes its measure and related dimesions Thanks Gary Hi Gary, Here's a SQL Server 2005 BI documentation tool which I've come across: http://www.bidocumenter.com/Public/Default.aspx >> With BI Documenter you can... Generate complete SQL documentation at the push of a button Document SQL Server, Analysis Services, Integration Services and Reporting Services in the same documentation set Capture metadata snapshots for historical analysis Output HTML Help (*.chm) or plain HTML Use either a graphic ...Show All
Visual C++ Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. error
I am writing a program, It works when I ran it without debugging, it compiles clean not errors, but when I ran it with start debugging I got this error: I am using: The error: ' project_4.exe': Loaded 'C:\Documents and Settings\rechever\My Documents\Visual Studio 2005\Projects\project_4\debug\project_4.exe', Symbols loaded. 'project_4.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'project_4.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. 'project_4.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', Symbols loaded. 'project_4.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded. 'project_4.exe': Lo ...Show All
.NET Development .NET SSL Problems
Hi I am running a .NET web service and remote class inside IIS I have a self signed Certificate for security on the virtual directory. When the web service attempts the access the remot class i get the error "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." I believe that because the certificate isn;t signed by a root authority the certificate is being rejected. Has any had this problem before and how did you get around this problem (How do i get IIS to accept its' own certificate) Thank you in advanced Hi Moritz!!! Thank you very much for your post.It works perfectly in my codes and gives desired result. Keep posting. Thanks ...Show All
Visual Studio Express Editions Variables
Hello, I need to know the different variables used in C#. Could someone give me a site or just tell me through a post what each of them are, and their definition. Thanks. The link I gave leads to different types of ints and floats etc. Is that what you are looking for If not, please give an example. ...Show All
.NET Development What happened to App.Config files in VS 2005 ?
I'm not sure where the proper place for this question is, but I have been using Visual Studio 2005 for a little while now, and I noticed that there are no more app.config files. What happened to them What replaces their functionality Is there any good documentation you can point me to on where this went Thanks Brendan Grant wrote: Nay they still exist. To add one to your project right click on the project and choose Add from the menu and then New Item. From the new window that pops up look for the 'Application Configuration File' option, select it and hit Add and you'll have a brand new App.config file added to your project. Hi, Brendan! What about smart device applications In my device appl ...Show All
Visual Studio 2008 (Pre-release) Serializing dependency "attached" properties.
Hi, I've created a dependency property, which I want to attach to all framework elements, like this: public static readonly DependencyProperty ActionProperty = DependencyProperty.RegisterAttached( "Action", typeof(string), typeof(FrameworkElement), new PropertyMetadata(string.Empty, OnActionChanged)); I set this dependency property for a button, for example, which works fine. I can retrieven the value from the dependency property again, and see that it is different from the default value. Now I want to save it to xaml, so that the attached property is serialized also, but that never happens. I’ve tried both the standard XamlWriter and also MarkupObject, for a custom serialization. When I iterate ov ...Show All
Smart Device Development Access Windows Mobile 2003SE phones contacts and Calendar
Hi, I am quite newbie to windows mobile developing, and I was wondering if you could help me with this question. I'd like to create some sort of sync app, so it needs to access the phones calendar and contact database. I searched on MSDN about this topic, but I only found solutions for Windows Mobile 5, but I need this for 2003 SE. Could you help me about this thanks, Zoli You'd need to use POOM to access that information. ...Show All
Visual C# [C to C#] Send Structur with byte array from C# to C
hi, i have a structure : ------------------------------------------------------------------------------- [StructLayout(LayoutKind.Sequential)] public struct DRVBINFO { public UInt16 wCardsNumber; public UInt16 wChannelsNumber; [MarshalAs(UnmanagedType.LPArray)] public byte[] myIntArray ; } ------------------------------------------------------------------------------- i want to send this structure from a C# to a C function ------------------------------------------------------------------------------- [DllImport("LightMng.dll", SetLastError = true)] static extern uint LightMngInit([MarshalAs(UnmanagedType.Struct)]DRVBINFO DRVBinfo); -------------------------------------------------------------- ...Show All
Visual Studio Express Editions MCAD and Express version
Hi! I wonder if it's possible to use the express version of C# when studying for the MCAD I have started on the "Developing Windows Based Applications book" and have run in to what I hope is a minor problem. I'm to add a component from the Project menu and the "Add new Item" window opens, but there are no generic component in the window! Maybe I'm totally lost here but please help me anyway I'm kind of new to this stuff as might be obvious from above... ... Thanks in advance Kennet You certainly can use C# Express when studying for certification tests however should be aware that the MCAD and MCSD test ...Show All
Visual Studio AssemblyinfoTask checking out for all projects in Source Control
We have different branches under the project in Source COntrol. But when I build one branch using TeamBuild all AssemblyInfo.cs files are checked out, also for the other branches (That I'm not building) Is there any way to avoid this, and to make AssemblyInfo.cs task only update AssemblyInfo.cs files for the project that I'm building Thank you Steve! I have changed the WorkSpaceMappings.xml file and I now only get $/MyTeamProject/Main. But I have one common build library folder I need to get on the build server that I'm not getting anymore that is that located on the same level as Main $/ | |-MyTeamProject | |-Main |-Branch |-BuildLibrary I have tried to add this to the Ge ...Show All
Visual Studio Team System TF61002 CQConverter: Unknnown Migration Error Message
Hi, I'm trying to migrate VSS sources to TFSC. Analysis passed without errors, I did the necessary mapping but when trying to add the data I receive a TF61002 error message. I found nothing on the web on TF61002 so far. Reading the error message's text I don't understand why migration status, vsts sourcedb and vsts souceid should be mapped to the Issue work item of TFS The vsts in the name of those fields let's me believe that they are somehow included by CQConverter or TFS - I don't have those fields in my ClearQuest work item. I can't find those fields in the field map file neither - as you can see at the end of this post... : : Validating users in Team Foundation.. Work item type 'Issue' ...Show All
