mugile's Q&A profile
Visual C++ error LNK2001
Hi, (I saw the post on same subject but it seems to be a little different. so I'll use some word from that post!) There is a project earlier written in VC++ 6.0. I opened the same project in VS. NET 2005 and I am trying to compile. The code compiles properly (with couple of warnings) but while linking I am getting unresolved external symbol errors like this: The linker seems to have problem with seeing .obj from files in program (which are in the debug directory). It doesn't seem that the /Zl switch or the /NODEFAULTLIB are on. 1>Linking... 1>Utm.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zone.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zones.obj ...Show All
Visual C++ inconsistent DLL linkage
My code is producing this: "d:\...\createsampleproject.cpp(11) : warning C4273: 'CreateSampleProject::CreateSampleProject' : inconsistent dll linkage" When I look at the line of source referred to, I see: #ifdef CREATEPRJ_EXPORTS #define CREATEPRJ_API __declspec ( dllexport ) #else #define CREATEPRJ_API __declspec ( dllimport ) #endif How can I solve that problem Use the documentation to get additional descriptions of "C4273". That is, look up C4273 in the MSDN. Also look at the documentation of "__declspec" if you are not familiar with that. Also, it would help us to help you if you were to tell us whether CreateSampleProject is the ...Show All
Visual Studio Team System Stronger indication of solution filtering in pending changes needed
This has caused developers at our site to either checkin too few or too many changes, as the indication wasn't strong enough as to indicate what file set was displayed in the pending changes. Right now the indication is a tiny 1 pixel line drawn around a tiny icon. Perhaps a big world icon to the right when not filtering and the solution icon when filtered. We've had so many strange cases of missing files or too many that the only thing I can figure to be at fault is human/interface error/failure. I know for a fact this has caused some of the problems, often the developer can't remember precisely so we can't track it back. I would presume this has contributed to quite a few more than I can track ba ...Show All
Visual FoxPro Properties/methods missing
Looks like I've got a serious problem. Had a near crash of my Acer Ferrari 4000 over the weekend from which I recovered. Didn't notice any problems until today, doing some simple coding and realized that a new label I created was missing some properties. Uninistalled, reinstalled, SP1 installed. For example, label1 (older) Arial, Blue, 10pt. New label: Arial, however I can't adjust the Forecolor or size. Properties don't exist. Go to another label: If the color has been changed, the color property exists, if not, it doesn't. If the size has been changed that property exists. Also, before, all the Methods tended to be full for any object - now all are empty. Anyone have any suggestions Right now I'm planning on a thorough clean - including ...Show All
Visual Studio Express Editions What Exactly do I need to use WinMain()
I have ried to use WinMain(); but I get a link error saying something about unresolved function. Is it because I use Express Edition. Currently, I am trying to copy the lib and include folders of the sdk into the VC. Also, can I use DirectX without WinMain; ...Show All
SQL Server Divide by Zero
Hi, In the BI developement, in a matrix i'm trying to avoid division by zero, but even if i test the field before the division, i've got the error everytime. I put the folowing test condition in the field, but i've got an error. Ex : iif(Turnover <> 0, Cost/Turnover,0) But i've got error message when the turnover is 0. Thanks for your help. I have taken this approach with my zero checks: =IIf( Fields!Turnover.Value > 0, FormatNumber( Fields!Cost.Value / Fields!Turnover.Value , 2, true, ...Show All
Visual C++ how to get icon for an extension(e.g .xls)?
thanks You can query the the keys under HKEY_CLASSES_ROOT and get the default icon for the extension.I know it's not clear please read the following article. it's easy to understand because it's calling system APIs from VB. This article will help you ...Show All
Visual Studio Tools for Office VSTO Outlook Add-in Debug errors even for simple HelloWorld add-in
I am trying to learn about VSTO Outlook development and I've tried several Outlook add-in samples online. I'm getting all kinds of weird behavior when I try to debug even a simple HelloWorld add-in. public class ThisApplication Private Sub ThisApplication_Startup( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Startup MsgBox( "Hello World" ) End Sub Private Sub ThisApplication_Shutdown( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Shutdown End Sub End class Sometimes I get the following in a Microsoft Visual Studio message box: "Unable to start debugging. Check for one of the following. The application you ...Show All
Architecture Windows Installer -> How to make patch or upgrade
Hi to all, I'm reading "The Definitive Guide to Windows Installer" to make upgrade or patch to my app. But all the procedure explained in the book is too much expensive for a programmer, and manual edit ORCA db is not a friendly procedure. Does someone know some white paper, or other to make simply upgrade to my app I can't use Clickonce because this is an old app built in VC++ 6. However, can i have some suggestion to other good installer for installation packages building I could point at these tools: Macrovision's Installshield Wise for Windows Installer WiX - it is powerful tool but it is not easy to use as there is no sophisticated UI VS 7.0 and 8.0 - you can use Setup Project template ...Show All
Visual Studio Crystal Reports for .NET 2005 Merge Module too bulky
Hello, I have a windows forms application using .NET 1.1, MSDE, and CR, that I deploy on CD. Now that I've migrated to .NET 2.0 and SQL Server Express, the Crystal Reports merge module (CrystalReportsRedist2005_x86.msm) is now 75MB instead of the 15MB or so. My application won't fit on a single CD. I hate to think that my distribution costs are going to double. Is there any way to create or get a slimmed-down version of the merge module that doesn't contain all the dlls I don't need For example, I only deploy to English, I don't need all the other languages. I've tried using previous versions of the merge modules, but so far no luck. I would appreciate any help at all. Thanks, Do you have a r ...Show All
SQL Server Linked Server
I have an oracel linked server that I use openqueryset statements to read the oracle tables. However, I want to update some data in a couple of these oracle tables. The linked server is setup using a readonly user. I'd like to be able to call an Oracle Set Role to grant me update capability and then perform the update. Can anyone help me out with some possibilities In case anyone needs to do this... or something similar... I have figured it out: On Oracle server, create the Oracle Package and Procedure: create or replace PACKAGE BODY Call_SEC_ROLE_Package AS PROCEDURE sec_roles (ReturnVal OUT SqlReturnTbl) is begin dbms_session.set_role('apply_security identified by secure_pass'); ReturnVal(1) ...Show All
Visual Studio Increasing the wait timeout for the VSS2005 Internet Web Service and IDE plug in
Is there any way to adjust the time out parameters on the server and/or client side when using the Internet provider What's happening is that occassionally the connection between the developer and the server is a very slow one, and the plug in gives up (often at the worst of times), resulting in bindings getting confused. My client has also discovered that the server (Windows 2003) needs to be rebooted about once a week in order to keep the web service speed up. VSS2005 starts running slowly, they reboot the server, it speeds right up. VSS2005 is the only application hosted on the server at the moment. Thanks The timeout Barry talked about is set on the client machine, and affects how long will the client wait to receive the r ...Show All
Windows Live Developer Forums How to enable conversion tracking through the API
Hi all, I cannot find the option in the API to enable the conversion tracking flag for an order. This is the option available in the Campaign Settings page in the web UI. We would like to be able to turn this on or off for all campaigns at once so I was looking at a way to do it through the API. Thanks, Tibor There is no API support for that, but we will address your request in the next version of our web UI (coming shortly :)). Shai ...Show All
Visual Studio Express Editions Radiobutton and textbox question
I have couple of radio buttons, and couple of textboxes next to the buttons. So Radiobutton1 next to textbox1, radio 2 to text 2. What happens is that if I click on the radiobutton, I'd like to be able for the cursor to be in the textbox, and if I click on the textbox, the associated radiobutton will be checked. Is there an easier way to do this by grouping or other properties, or do I have to do this by code That's interesting, I have the code, just wondering if there's somekind of form link for it. I use the Select instead of Focus. Private Sub RadioButton1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.Click MaskedTextBox1.Select() ...Show All
Windows Forms how to install the .net framework
how to install the .net framework with the setup project when i try the perquisites in the setup project and try to install the framework it only check whether the framework is available.. i want to install the .net framework if the framework is not available how to do that.. can anyone help me Thread moved to the Setup/deployment forums it will automatically install it for you, it will download it and install the appropriate version of the framework. Otherwise, you can include the redistributable framework in your installer I hope this helps: http://msdn.microsoft.com/vstudio/downloads/tools/bootstrapper/default.aspx pull=/library/en-us/dnnetdep/html/vsredistdeploy1_1.asp ...Show All
