Marc Allard's Q&A profile
Visual Basic Minimum Permission Requests?
Using VS2005 RC1, every time I create a project and add a reference to a DLL or control that resides on a different drive I get the following error either when attemting to run the program or when I first attempt to add the reference: ... Could not load file or assembly ... Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) I'm an administrator- equivalent user and have full create/modify/destroy on both my local drives and all network volumes. This seems to be the case when I create the project on my local C: drive and attempt to add a reference to something on a network mapped drive and when I create ...Show All
SQL Server SQL Server 2005 Express Cluster Install
I'm trying to install SQL Server 2005 Express on a Windows 2003 SP1 Cluster. Everything looks fine until I get to the Virtual Server IP Configuration Page. There all fields are grayed out. No network to select. No way to enter the IP address for the new virtual server. It looks as if there is an interface problem between the install routine and MSCS so that the install routine is unable to read the assigned IP addresses. Any idea how to solve that regards Express cannot be installed as a virtual clustered instance. The only supported versions for clustered instances are Standard, Enterprise, and Development. http://www.microsoft.co ...Show All
Windows Forms Resize Control
How do I keep the control at a maximum of 32 * 32 pixels & no more/no less Any ideas The old MAPI control from the old VB 6 days was used to connect to Outllok Express... & send/receive mail etc. I was using it as an example because the control wasn't able to be resized because you were only supposed to be usi ...Show All
Visual Studio Express Editions Where can I get mscomm32.ocx?
I have a vb6 program that I want to compile with vb express. When I open the vb6 project under vb express, and the Wizard tries to convert it, I get an error stating that I need mscom32.ocx to convert the program . I don't have the vb6 compiler -- I assume that is why I don't have mscomm32.ocx. I don't understand why express needs mscomm32.ocx to do the conversion. But... Is there somewhere I can download mscomm32.ocx for free I suppose the other alternative is to not convert, but simply read the source code directly into a vb express project and try to turn it into express code manually. I don't know how to get the vb6 ...Show All
Visual Studio VB6 and VS2003 building
Seems to me that I should be able to create my own custom tasks for building VB6 and VS2003 solutions. Is there anything that will prevent this from working -THumphries There is a task at www.freetodev.com to do this. ...Show All
Visual C++ strcpy_s / strcat_s / sprintf_s
I have found out the hard way that these functions pad the output buffer to its maximum extent with character 0xfd That's great, but could the documentation say something to make it clear this happens I'd probably recommend switching even before those functions included in Standard. For other platforms you always can write wrappers yourself, e.g. #if not defined(_MSC_VER) errno_t memcpy_s( void * dest , size_t sizeInBytes , const void * src , size_t count ) { assert( count <= sizeInBytes ); memcpy(dest, src, count); #if defined(DEBU ...Show All
Game Technologies: DirectX, XNA, XACT, etc. linker problem
I'm making my first DirectX program and when I try to compiler I get this error: DirectX Test error LNK2019: unresolved external symbol _DirectDrawCreate@12 referenced in function "bool __cdecl init(struct HWND__ *)" ( init@@YA_NPAUHWND__@@@Z) and it point to this line in my code: hr = DirectDrawCreate( NULL, &g_pDD, NULL ); hr is a variable of type HRESULT and g_pDD is a var of type LPDIRECTDRAW please help It is recommended to not longer use DirectDraw. You should use Direct3D instead: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=76924&SiteID=1 Your linker problem occurs beca ...Show All
Visual Studio Team System Problems with Debug and FxCop
Hi All, Sometimes when I starts the debug process, it do not stops in my breakpoints. I do the same thing with all my rules, but sometimes all my breakpoints do not work in all my rules.... When it happens, I am forced to create a new project and import all my rules to this new project. It is not a good idea and I'd like to know why it happens and if there is a solution. It happenned 4 times up to now. I am using fxcop 1.312 with Visual Studio 1.1 Regards, Marcelo. There are two main reasons why your breakpoints might not get hit. 1. Associated symbols (pdb) are not getting loaded: To see if ...Show All
Visual Studio Tools for Office Network write access problem?
Hi. I've got the task of making a Proof-Of-Concept project using VSTO in our company. But i'm already stuck. I've have installed VS.NET 2005 and VSTO, and i can create Office projects. I have created an excel project, but when i try to save the project i get an error stating "Cannot Access VSTO POC.xlt" (VSTO POC.xlt is the name of my excel template). The project is located on a network drive, which is mapped to a drive letter in windows. When i try to run the "app" i get the same cannot access error, and the i get an Could not load file or assembly error inside Excel. Which process is used to execute the code I believe it is a network a ...Show All
.NET Development Encrypting the app.config file
My application will use the DataProtectionConfigurationProvider to encrypt my app.config file. I can encrypt the file from within my applicaiton, but I would like to be able to encrypt it outside the application so that the file is encrypted when it is deployed. I know that you can encrypt web.config files with aspnet_regiis.exe. Is there a tool that can encrypt app.config files as well Eric This is exactly what I am looking for and is the only thing holding me back from deploying my project. Does anyone have a code sample of not only how to encrypt/decrypt the connections strings in the app.config file, bu ...Show All
SQL Server Converting identity column to "not for replication"
Is there a good way in sql2k to change an identity column to "not for replication" without recreating the table and moving the data I'm thinking of setting syscolumns.colstat to (value) | 8, since that bit appears to be control "not for replication". But I've been a sql dba for 8 years and I can't remember when I've ever had to update a system table -- I'd rather not start now. Thanks, Mike Hey Mike. There is no way to add/remove/modify the identity attribute for an existing column in SS2k...if you try to do this through EM, behind the scenes SQL will do lots of things that are no ...Show All
Windows Live Developer Forums spelling with CultureInfo = "de-De" wont work.
Hi all, the msn search service works fine for me in VS2005. But the SourceType .Spelling works only with en- languages. One Sample: A query with the word inde c server returns with CultureInfo de-DE no WebResult and no SpellingResult. If i change the CutlureInfo to en-US and repeat the query, the SpellingResult comes right with inde x server and all is fine. Nows anyone if this is a problem with the SearchService or it comes from msn QueryServer Thanx for Help Klaus Klaus, the spelling correction works with CultureInfo set to de-DE. Try the misspelled search term Begrif t instead of B ...Show All
Visual Studio Team System Team Projects vs. Source Control
The company I work for has a structured file system for VSS6.0. We want to keep the same system for the source code, but would like to utilize Team Foundation Server and Team Projects. Do Team Projects need to be associated in the same way as source code or are they independent of the code For example, my Explorer tree looks like this: Classes MyClass HisClass WebApps WebApp_A WebApp_B Each sub-directory is a solution which could contain multiple code projects. My Team Project would consist of WebApp_A and MyClass. Is this possible If so, does it only make a reference to the directories or does it create a new dire ...Show All
Visual C++ Managed COM
Hi, i wanted to expose some application COM classes written in C++ to other COM capable languages so i tried to write some test classes and exported a *.tlb with regasm.exe. But it doesn't work cause neither interfaces with id's nor class id's are defined in the *.tlb So there is some kind of a exporting problem. Heres the code: // Class interface AppInterface [Guid( "4F588E58-C85C-4b8c-A831-CDE454B5C218" ), InterfaceType(ComInterfaceType::InterfaceIsIUnknown)] interface class AppInterface { String^ GetAppVersion(); void Initialize(); }; // Events interface AppInterfaceEvents [Guid( "57EA6615-5526-42d4-9039-2A0FC ...Show All
Software Development for Windows Vista Exchange data in state machine scenario
Hi all, Several samples show how to exchange data between host and workflow: define an interface with DataExhangeService attribute on it, implement the service and add the service to the workflowruntime (of configure in web.config). In my state machine I would like to be able to read and write a dataobject in every state. The object I would like to be able to read and write is passed at startup of the workflow instance as a parameter. Do I have to add eventdriven activities to every state to: A) listen to a 'WriteDataToWorkflow'-event to update the dataobject contained by the workflow B) listen to a 'ReadDataFromWorkflow'-even ...Show All
