sshaju's Q&A profile
Visual C++ DLL questions with Visual Studio using C++
I'm new to Visual Studio (I have VS 2005 Standard Edition) and I'm trying to learn how to code a DLL with some standard functions I use instead of including a cpp file into every project that needs it. Using the help I got a DLL to work with a Win32 project using __declspec ( dllexport ) and __declspec ( dllimport ). When I try a Windows Form Application I get lots of errors with the linker because of the CLR from what I can tell. I tried various things I read and could never get it to work. I decided to try my hand at a .def file and after reading up on how you write it up I have some questions. Can you export overloaded functions using a .def file From what I read I have to include extern "C" to keep C++ name mangling from ...Show All
Gadgets (UPDATE) Proud to present my first gadget.
(an image would be here. If it's not: http://img.photobucket.com/albums/v299/link_thelostgen/ytmnd_screen.jpg ) It's simple, but effect. A gadget that gives you access to YTMND's search as well as random.ytmnd.com for when you don't know what to look for. No one's done a YTMND gadget yet, so I'm happy I'm the first. I'm gonna continue adding new features and refining the design. http://gallery.live.com/liveItemDetail.aspx li=8480fddc-c99a-42f6-94dc-175c571320b7&l=1 ...Show All
Visual Basic FontSyles?
How do you get a multiple fontstyle i.e Bold and Italic and Underlined all at the same time. I have 4 Checkboxes each with a different style, if I click ckbBold then I get a Bold font in my textbox but if I then click ckbItalic nothing happens until I uncheck ckbBold, so I only ever get one style. Any ideas or pointers Does this help Me.theTextBox.Font = new Font(Me.theTextBox.Font, FontStyle.Bold OR FontStyle.Underline) the fontstyle can be combined by using the OR operator ...Show All
Visual C# How can I store custom configuration info? (System.Configuration.CustomSection doesn't exist??)
I've searched for quite a while and have read the MSDN so please forgive me if this is a dumb question but I am completely unable to figure it out... Basically all I'm trying to do is create either a custom configuration file or use an existing one (eg. I'd like to store the user's name, their SMTP server, etc, in a config file) I've found a thread that seems to explain how to do this but it's not working: http://msdn2.microsoft.com/en-us/library/system.configuration.configuration.aspx It can't seem to find the namespace name "CustomSection". So, what I'm wondering is how I can easily store a couple of things inside a config file. (eg. user entered data like server addresses, etc) Thanks for any help... ...Show All
Visual Basic Variables scope in shared function
If I declare a function as shared, I would like to know the scope of the variable defined within it. public shared function Testing() dim a as integer ... end function What will happen when 10 calls are made to the same function With the variable be the same Sorry, Tony. I found that the link you provide still can't clear my mind. It didn't mention the case when the function is shared and how will the local variable in that behave. Moreover, please note that I don't need to create a new instance to use that function as it's shared. Alex ...Show All
.NET Development Calling .NET 2.0 Windows Service from a VB6 ActiveX DLL
I have a .NET 2.0 Windows Remoting Service (say Server.exe) which implements the interface (say Interface.dll) (I am using interfaces and not using soapsud). I want to consume this service from a Visual Basic 6.0 ActiveX DLL (say VB6ActiveXClient.dll). What is the best way to achieve this Will the solution be different if the VB6ActiveXClient.dll were to be remotely calling the Server.exe I am using configuration file to specify the Remoting parameters for the Server.exe. I have searched all over the web including Microsoft’s site but I am unable find a clear answer. There is information in bits and pieces but nothing exactly matching my case. Questions like these are not answered anywhere: Should I run the regasm.exe a ...Show All
Windows Forms Problem while adding reference to the project
Hi, I have an api that is written in C which is complied into a dll. I try to add a reference to the dll but for some reason I get an error "Please make sure that the file is accessible, is a valid assesmbly or a com component". I have tried placing the dll in bin/debug, or the project folder. I can see the dll , so I can select it, but when I try to add it I get this error. I checked the privilages as well. Can anyone suggest what the error might be All help is very much appreciated. Thanks! If you are using the "Browse" tab in Visual Studio to add the dll, the problem is most likely that the dll does not contain any components. If it was a valid COM library, it will be se ...Show All
Visual Basic Vs2005: splash screen customization.
Hi to you all. I'm developing a Windows form program in VB.NET and Visual Studio 2005. Vs2005 contains a model for splash screen. I added one in my solution and all works good. Buyt now: 1) I wanna make customizable the possibility of exclude the splash on the hit of the program, reading a cfg file XML. 2) I wanna modify the splash duration reading it from the same XML file. 3) I wanna put in the splash screen a TRANSPARENT .pnm backgroung and make it shaped (not rectangular). I tried to change properties of splash form, but VS2005 IDE doesn't accept the transparent option. Why Or better, How can I bypass the problem to obtain a shaped splash Thx! fedrok wrote: Hi to you all. I'm developing a Windows form program in VB.NET ...Show All
Software Development for Windows Vista MonthCalendar recognized as pane...
Hi guys, I'm having a problem with the MonthCalendar control not being recognized as one, it's just recognized as a pane. I tried different applications: - A C# (Winforms) app with the basic control - A native Win32 application - The MonthCalendar control in the 'Date and Time Properties' of Windows Nothing...Allthough the control should to supported: http://msdn2.microsoft.com/en-us/library/ms753925.aspx Any idea on what is causing this PS: I'm using the release version of Winfx. Thanks, Nick ...Show All
Visual Studio 2008 (Pre-release) accessing Sharepoint 2007 information using WCF?
I know it can be done, but what is the best way to, say, access a list of Documents in a document repository then make them available on a website external to sharepoint Including allowing the end user to download the documents My website that will be accessing the data will not be on the same server as Sharepoint so I cannot use the OM, but I would like to create a WCF app on the Sharepoint Server and use it to gain access to the data. Can this be done easliy If users have access not only to your ASP.NET site but also HTTP access to the SharePoint Server, the easier approach would be to manage just the HTTP URLs to each document within SharePoint Libraries. I mean, in this case, your WCF Service will ...Show All
SQL Server SQL Server Mobile - Reset Increment
I can't seem to find a way to reset the auto increment fields in my SQL Server Mobile database table. Are there any SQL statements I can call in order to do this I'd rather not have to drop and then re-create the database. Any help much appreciated That statement only works for IDENTITY columns and only to change the IDENTITY seed and/or increment. The IDENTITY property can only be set when the table is created - you cannot change a regular column to become an IDENTITY. ...Show All
Visual Studio Team System Creating a new project
I have set up a new Team Project for my next program and went through all the steps to create the site, set up sharepoint and set resources and security. Now I want to add the project everyone will be using. When I click file ->new-> project and add a blank solution and select Add Solution to Source Control option it wants to open my SourceSafe and add it there. I want to add the Solution to the TFS location I set up while creating my team project. How do I do this This is my first attempt at a Team Project and need to get this going so I can get my other resources set up with tasks and start tracking this. Thanks. John Wright In Visual Studio, Select Tools->Options. This should open the o ...Show All
SQL Server Can't add database to projects
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=497273&SiteID=1 I have gone through the above and, while I can connect to the sql server and activate connections, I can not add a sql database to a project. Open a project Right click - add new item Choose sql database or Add existing item choose existing sql database results in: "Connections to SQL server files (*.mdf) require sql server express 2005 to function properly blah blah blah" Like I said, I can connect to the DB through the server explorer and view table definitions and data. I just can't add one to a solution. I have reinstalled sqlexpress already and am trying to avoid having to reinstall visual studio. OK, is the SQL Exp ...Show All
Internet Explorer Development keep System.Security.SecurityException from coming up
When I use this HTML : <a href="http://members.bex.net/commonmcd/downloads/PainterTest.exe"> <h3>Click here to download Drawing Program.</h3></a> users get this pop-up message : An exception 'System.Security.SecurityException' has occurred in IEExec.exe. What I want is for users to be able to download PainterTest.exe without changing the default settings in IE. They should get a pop-up box with a security warning asking them if they want to download PainterTest.exe. Not a cryptic security exception. The workaround is to right-click and click on "Save Target As..". It would be nice if they didn't have to do this, since a lot of users don't know how to do that. Thi ...Show All
Visual Studio Report dissapear on postback
Hi all, I am using Crystal Report for VS 2005 to develop an Asp page.Below is the code is use to display my report in a button click event. OdbcDataAdapter myAdap = new OdbcDataAdapter (); myAdap.SelectCommand = myCmd; DataSet ds = new DataSet (); myAdap.Fill(ds); ds.WriteXml( @"c:\dataset_summary.xml" , XmlWriteMode .WriteSchema); string reportPath = Server.MapPath( "Crystal/projectsummary.rpt" ); myReport.Load(reportPath); myReport.SetDataSource(ds); myCrystalReportViewer.ReportSource = myReport; The report is displayed but when i click on the Export button or the Print button, the report dissapear. Any idea why this occurs and how to solve it ...Show All
