Galin Iliev's Q&A profile
Visual C++ Build successful but cannot run helloworld?
Hi, Any help would be aprreciated. I am a beginner trying to run a c++ helloworld project I did on visual studio 2005 as win32 console project. I am using a centrino laptop is that is useful info to solve this. I have 2 questions. Question 1: Why can I only build successfully if I put "void" in front of the main and inside the brackets I see in tutorials that people can build without the "void"s. Question 2: Why even after building successfully I press F5, the program still cannot run and I get the error messages: 'Myprogram.exe': Loaded 'C:\Documents and Settings\Manlee Wan\My Documents\Visual Studio 2005\Projects\MahJong\debug\MahJong.exe', Symbols loaded. 'Myprogram.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', N ...Show All
.NET Development Printing a PDF File
Hi all I want to a print a pdf file in my application. how can I do that using C#.Net. If anybody knows it please help me Bijaya Hi, 1. in VS.Net you can add "Adobe PDF Reader" com Component Go to Tool box, right click and select "Add/Remote items..." and then from the Customize toolbox select Com Components tab and then select "Adobe PDF Reader" and then press OK. Now you can drag/drop that control to your windows form. Internally it will add AcroPDFLib to your solution. and then you can use the following code, this .axAcroPDF1.src = @"your pdf file path"; or this .axAcroPDF1.LoadFile(@"your pdf file path"); then you c ...Show All
Windows Forms C# namespace...
Hi, i'm writing a shell extension in c# that will add two menu's to the right-click menu of explorer. Here is the problem. If i select one file and use the standard OPEN context menu all is well, but if i select two or more files and use the standard OPEN context menu it seems to want to run through the code for MY created menu. Here is the code in question: int IContextMenu.QueryContextMenu(uint hmenu,uint iMenu, int idCmdFirst,int idCmdLast,uint uFlags) { // The first id to use (should be 1) int id = 1; if ((uFlags & 0xf) == 0 || (uFlags & (uint)CMF.CMF_EXPLORE) != 0) { // Create a new Menu Item to add to the context menu MENUITEMINFO mii = new MENUITEMINFO(); mii.cbSize = 48; mii.fMas ...Show All
SQL Server Access Denied - SQLSERVER 2005 Integration Services
Hi: I am getting access denied error "cannot connect to server" while trying to connect Integration Services. I am trying to connect from my laptop to the SQLSERVER database server. I followed the document "Connecting to a Remove Intergration Services Server" , doc id: aa337083. But I can connect to IS if I log remotely to the server. Any thoughts on this Thanks -Rajesh I am getting following errors. =================================== Cannot connect to cvsslmdd1-vm. =================================== Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) ------------------------------ For help, click: http://go.microsoft.com/fwlink ProdN ...Show All
SQL Server Group Case Sensitive
It appears that table grouping is case sensitive (for example, Re-Roof versus Re-roof appears to be causing a group break). I can't find a parameter to change this behaviour in Reporting Services. Can anyone verify that it is in fact case sensitive How to change I am running SQL Server 2000 and the database that I am querying is not case sensitive. Teo is regarding case-sensitiveness. The main reason is how the ReportObjectModel works and that making scope names case-insensitive would have a negative overall performance impact. -- Robert ...Show All
Visual Studio Team System 'Custom' parameters in queries
Hello, Is there a way to add a custom parameter to a query so it will be prompted to the user when he/she double-click the query to open it. To give you more details, we are looking for creating a query that will accept a list of work item IDs and return all the issues that matches these IDs. A convenient way will be for us to specify this kind of condition when building the query: ... And ID In @myIDList ... We tried that, but it seems to be not supported. Thanks for your help, Gaetano. Any update on this feature We would like to define a "@CurrentIterationPath" parameter so our "current work" queries do not have to change from release to ...Show All
Visual C++ Help button get chm instead of hlp
I have a application built around a CPropertySheet derived class. The help button is looking for 'app.hlp' file (this is the default MFC stuff, I've not added anything other than moving the button). How do I get it to look for a 'app.chm' file instead I've tried the following using a test help file in InitInstance() //First free the string allocated by MFC at CWinApp startup. //The string is allocated before InitInstance is called. free((void*)m_pszHelpFilePath); //Change the name of the .HLP file. //The CWinApp destructor will free the memory. m_pszHelpFilePath=_tcsdup(_T("C:\\filezilla\\filezilla.chm")); EnableHtmlHelp(); but i just get "Failed to launch help" Ayman Shouk ...Show All
Visual Studio Express Editions C++ express edition 2005 Error running debug
Hello, I just installed the visual C++ 2005 beta and I made a basic C++ program. But when I got to debug it, it says the system cannot find the path specified. All I did to make this program was go file>new>project and then file>new>file>visual C++>C++ file and typed my code into that. It is just a very basic cout program that I made as a test to make sure I installed correctly and everything. But it looks like I did something wrong and I'm not sure what. Thanks. Yes it is. The express edition works as far as writing code and everything, but when I go to debug it says that message. I don't have any other microsoft C++ compiler versions on this computer or anything, although I do have Dev- ...Show All
.NET Development convert string to type
Hello, lets say I have a class named Myclass in my program and I want to create an instance of this class during runtime but I know only name of the class. So I need first to convert string "Myclass" to type Myclass and then create an instance of class My class. How can I do that I know that I can use Gettype method to convert string to type but how do I then create instance of that type and call its methods and/or access methods Thanks You can either - Cast it to an instance of your object (if you know the type at design time) - Use reflection to get the methods/properties from the object and invoke them - Use the power of Visual Basic and use late binding (Option Strict Off) Best regards ...Show All
Visual Studio Express Editions combobox usage with sql statement
I have datagridview , combobox. And I completely set the datasource. I addet some items into combobox. I want to execute the sql statement when I click the items in combobox but it does not work. sql statement for fillby : select * from table 1 where abc like ' " &combobox1& " ' and the click event of combobox1 is : me.table1tableadapter.fillby(me.dataset.table1) it doesn't work.. How can I do this For sql statements consider using parameter collections on the command - by simply concatenating text to form a string you are opening yourself up to the potential of a SQL injection attack. If you dont know what this is do a simple web search on "SQL injection attack" ...Show All
.NET Development Delegate help?
In a VB app... A system timer callback method is reading external hardware. The callback method generates data to be displayed on a win form, but the callback method writes to the form have no affect. I think it is because the callbacks are a diffferent thread( ) than what owns the form. I also think I need to create a delegate for the callback to use to access the form. I'm not a total newbie, but I don't understand the msdn docs on creating delegates. Can someone please get me started in the right direction Steve Yes, it is pretty simple really: avoid referring to a form instance by its type name. That was a VB6 anachronism that causes nothing but trouble in VB.NET. So: no longer Form1.S ...Show All
Visual C# Custom class convertor problems
Hy, I am trying to design a custom control. Some properties of this control are from a self made object I call "Voltage" witch consist of a float 'volts' and a enum 'soort'. to use this object in my custom control as a property I need to make a VoltageConverter to be able to set the propertys in design time. The problem is that I can not debug the VoltageConverter class since the Visual C# 2005 IDE Stops imidiately if I try to test the control in the Disign view. Is there some trick I can do to be able to debug this class, or is it yust a matter of trying and starting the IDE everytime again To be complete I will paste some code of the voltage class and the voltage converter. may be sombody can see where it go's wrong ...Show All
Visual Studio Team System TFS Project site in MOSS 2007
I know that the question of whether TFS can be currently integrated with MOSS 2007 has been answered (no), but can anyone in the TFS team confirm or deny that there are plans for this Any idea when I am currently setting up our dev environment with TFS, and want to know whether I should spend time working on the wss version of the project site, or wait until I can integrate with MOSS 07. Thanks in advance. Well, you can actually integrate with Moss 2007. (unofficially) http://bloggingabout.net/blogs/mglaser/archive/2006/12/05/Why-you-should-upgrade-TFS-V1-to-WSS-3.0.aspx /Andreas http://andreasohlund.blogspot.com ...Show All
Software Development for Windows Vista How to use DirectX.AudioVideoPlayback????
Hello.I have used DirectX.AudioPlayback in my application to play MP3 Files But I have a problem.How I know when the playback is finished, because I need to start the next melody. I have tried to use audio.ending() event, but I don't see any result. the code is the following: .... // backmusic is the name for audio InitializeComponent(); this.backmusic.Ending += new EventHandler(backmusic_Ending); .... private void backmusic_Ending(object sender, EventHandler e) { MessageBox.Show("The playback is completed1!!!"); } thanks Check out the DxPlay sample at http://DirectShowNet.SourceForge.Net . It is c# and uses the IMediaEvent event method he describes. ...Show All
SQL Server snapshot agent error: "string or binary data would be truncated"
I'm creating a publication with a complex filter joining many tables, for replication between SQL Server 2005 and SQL Mobile 2005. Is there a limit on the number of articles, or depth of joins, in the filter I have a working replication, but when I add another article joined to tables already in there, the snapshot agent status window gives me this error: String or binary data would be truncated. Cannot find the object 'MSmerge_ctsv_2C675AF5938E4EA1B7D0DCFF9ECAD9EB', because it does not exist or you do not have permission. sp_MS_marksystemobject: Invalid object name '[dbo].[MSmerge_upd_2C675AF5938E4EA1B7 The MSmerge_ctsv... system view being referred to DOES in fact exist. But I wonder if there's an internal varchar variable used to hold ...Show All
