Peter Huber's Q&A profile
Visual C++ extern "C" not working in 2005
Hi, I try to create a simple dll, native, standard libraries, no MFC, no ATL. No .def file. The following code build in VC++ 2003 created the dll with an exported function with name SetPowerUser . The same code in VC++ 2005 creates the dll and the exported function name is: _ SetPowerUser@4 . Can you figure out what is wrong with the code below cpp file: #include "stdafx.h" #include <shellapi.h> #include <msi.h> #include <msiquery.h> #pragma comment ( lib , "Msi.lib" ) extern "C" __declspec ( dllexport ) int __stdcall SetPowerUser(MSIHANDLE hInstall) { .... return ERROR_SUCCESS; } // SetPowerUser StdAfx.h: #pragma once #ifndef ...Show All
Visual FoxPro vfp 6 reports
I am using report format environment preview. When through terminal services, people are able to click the print icon, but they are not able to print out their report. Do I need to specify local printer I am newer to using FoxPro It is enought to have a default printer selected from Start>Printer&faxes and the printer to work fine. You may choose,change and check the default printer from vfp with getprinter() function. ...Show All
Visual Basic how can I use the sender object to determine which of the panels fired the event?
given the following; Private Sub Panel_MouseDown( ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PanelDrawingLeftTop.MouseDown, PanelDrawingRightTop.MouseDown, PanelDrawingLeftBottom.MouseDown, PanelDrawingRightBottom.MouseDown how can I use the sender object to determine which of the panels fired the event Isn't it a cast Thank you, -Greg and also Private Sub Form2_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load AddHandler Panel1.MouseDown, AddressOf OnPanelMouseDown AddHandler Panel2.MouseDown, AddressOf OnPanelMouseDown End Sub Private Sub O ...Show All
Visual Studio Team System How many scenarios I should write to start the first iteration
hi How many scenarios should write the bussiness analyst before to start the first iteration Thanks in advance Javier Hi But when I'm writing scenarios they aren't estimated, how can I know that they are enoughto keep the programming team busy for the whole iteration Thanks Javier ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Reference rasterizer
My graphics card doesn't support Pixel and Vertex shader so i won't be able to do anything interesting with XNA, it's what i have heard. So i started thinking: will i be able to utilize the reference rasterizer (only to learn XNA) XNA supports reference rasterizer in addition to the HAL rasterizer Why What's the reason behind this Anyway my new graphics card with support for SM 3.0 is on the way... This doesn't matter for me anymore... Anyway it's a bit odd for me! ...Show All
Microsoft ISV Community Center Forums BSM 2005 server installation failed
Hi all, i am installing BSM 2005 server Eval in windows 2003 R2 Enterprise Editon Eval with SQL 2005 Enter prise Edition Evlauaton i have followed the previous threads related to pslite.exe v8 ..etc for successful installation steps.. but finally i got this error... Event Type: Error Event Source: MsiInstaller Event Category: None Event ID: 10005 Date: 8/17/2006 Time: 1:21:57 PM User: LPW2K311\Administrator Computer: LPW2K311 Description: Product: Microsoft Office Business Scorecard Manager 2005 -- Error 26204. Error -2147217900: failed to execute SQL string, error detail: The role 'BPMDeveloper' does not exist in the current database., SQL key: SQLWeb3 SQL string: USE ScorecardServer DECLARE @dbowner sysname SELECT @dbowne ...Show All
SQL Server Dedicated Administrator Connection
Hi: I am trying to connect to my local instance of SQL Server 2005 using Dedicated Administrator Connection by using Admin:Servername\Instancename and I end up with the following error. Dedicated administrator connections are not supported. I enabled the connection in the SQL Configuration Manager and still get the error. Any ideas on how to resolve this error . Note: SQL Browser service is running. Thanks Ak Thanks Ashvin. That did exactly confirm that I was connected using DAC. It returned one row. So my million dollar question is why cant I connect to DAC using ADMIN keyword. I tried all that have been suggested in this thread and still it says DAC connections are ...Show All
SQL Server Can't preview report after convert to 2005 with <CodeModule> [rsErrorLoadingCodeModule]
I have a .rdl file which I opened in visual studio 2005. I answered Yes to the prompt Microsoft Report Designer. . . Do you want to convert this file [Yes] Then I saved the file. The issue is when I am in Visual Studio and click on the Preview tab, I get the following error: [rsErrorLoadingCodeModule] Error while loading code module: ‘x.ReportDefinitionsHelper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'AdvancedMD.Report.ReportDefinitionsHelper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. There was a <CodeModule> which existed prior to the conversion and the preview worked fine. I trie ...Show All
.NET Development dynamically creating a form when receiving an event
Hi. I have an instant messenger app. When a peer receives a message from another peer, his receive_message event is triggered and I'd like to spawn a new IM window. However, when I do so, it freezes. This class raises the event public class ClientProcess: MarshalByRefObject, IamShtoClient { //This event is used to notify us that we received a message. public delegate void message( object sender, messageWrapper mw); public event message messageReceived; //Raise an event when we receive a message [System.Runtime.Remoting.Messaging.OneWay] void IamShtoClient.receiveMessage(string message, string senderUsername) { if(_debug) log("received message: "+message+ " ...Show All
Windows Forms Save a file???
I am creating a web browser (eariler versions on www.freewebs.com/evanmulawski ) and am wondering how to create a 'save target as...' context menu strip item, so that I can save the file that the mouse is currently on. Thanks, Evan Mulawski If I am reading you correctly I think what you need to do is a 2 step process and you are only doing 1 step at the moment. In the save dialog allow the user to select where they want to save the file to, as soon as they select where to save the file to then you need to copy the location of the current file to the new location using fileIO. So I guess in General you get the location of the source (web page) and the target from the savedialog then use a simple fileIO copy file. Does ...Show All
Visual Studio Express Editions Emails when registering
Gee it sure would be nice if the emails had the reg key in them so if some poor bloat kills his IE before he copy's the info down( reg key ) he wont have to uninstall and reinstall and re register... when you register for the first time emails need the codes in them. IE can crash and or the user closes without realizing it needs to be open before the user can enter the code and the code is gone ...Show All
Visual Studio Error during installation of vs 2005!
hello all, I'm having some difficulties installing VS 2005 on a tablet pc running windows xp tablet eddition sp2 the error is during the installation is error 1921.Service "Machine Debug Manager" could not be stopped. Verify that you have sufficient privileges to stop system services. But this account is an administrator one and i have all privileges so please could someone help!! Thanks a lot and best regards, moe even though this is for office ... try this and see what happens: http://support.microsoft.com/kb/889499 ...Show All
SharePoint Products and Technologies stsadm.exe
Hai, i got an error using the stsadm.exe cmd line tool.When i try to create a site or website iam getting an error. The specified domain either does not exist or could not be contacted. (Exception from HRESULT: 0x8007054B) i got messed with this error message.All n/w connections are working fine.i can able to communicate with AD. Anyone out there help me out hai actually i rectified that domain not created issue by changing my LAN setting..... Now im facindg new issue....i can create site,web.URL in stsadm.exe(as im using ad account creation mode)....but i cant browse those3 pages .....i can create sharepoint site only in central admin page.... the error im getting ...Show All
SQL Server trim trailing white spaces
Hi All, I have a column which has some white spaces that I suspect is tab delimeted one. So when I use a rtrim(col1) it would not trim those. So i used a scrip component and wrote this line, Row.trimDetail = RTrim(Row.detail) here trimdetail is an o/p column and detail is the input col with the trailing spaces. but still I don know why the column has that spaces. Can someone help me to figure out what is the problem Thanks in advance, Phil Brammer wrote: Well, are you sure they are spaces and not tabs You could also just use a derived column transformation to do the trimming instead of a script. that likely won't help here though. haa that may be the issue.. I am not sure if ...Show All
Smart Device Development How to determine if program is running in Smart Device or in Windows
I have a program written for Smart Device 2003 in VB2005 that has menus that I want to run in WinXP. The different implementations of the menu system between the two creates a problem, because Smart Device menus are at the bottom, and are a different size from programs on the Win desktop. I need to resize the form when it opens on the win desktop. Can anyone tell me how I can determine in VB2005 code whether the program is running in Smart Device 2003 or Win desktop Thanks, Dennis Lackey ...Show All
