Interociter's Q&A profile
.NET Development Problems linking: wininet
# define WINVER 0x0400 #include "stdafx.h" #include <windows.h> #include <wininet.h> int main() { HINTERNET hInternetRoot; hInternetRoot = InternetOpen("bmw Agent",INTERNET_OPEN_TYPE_PROXY, "127.0.0.1","<local>",0); return 0; } I am getting the error: WebAccessCom error LNK2019: unresolved external symbol __imp__InternetOpenA@20 referenced in function _main Any ideas would be helpfu ...Show All
Windows Forms how to set a messagebox , which ask for username and password?
hi i have some windows forms. on form1 , there is a button. when the user clicked it , form2 will appear , but i want to show a message box to confirm username and password , and after confirmation, form2 will be shown. how can i ser such messagebox thank u for your attention befor Hi, you may model such a dialog out of a WindowsForm, two labels, two textboxes and two buttons. I would call this form in the const ...Show All
Visual Studio Web project contained language code support interface
Hi, I have a question regarding the IVsContainedLanguageCodeSupport interface. Or more specifically one of its members, EnsureEventHandler. I currently have my codeprovider up and running. The designer works and drag and drop from the tool box works. The only problem is when I double click on the control (dropped from the tool box) in the designer (say for example a button) the contained language's EnsureEventHandler method does not get c ...Show All
Visual Studio 2008 (Pre-release) What the method EntitySet.RemoveAt is for?
When I remove an entity with this method, the entity is removed from the collection. But when I then call SubmitChanges, no commands are send to database. Vitali Lesheniuk wrote: > Removing an item from an entityset does not cause deletion. It merely breaks > the link between the two entities (foreign key is set to null.) I didn't write only about deletion. Broken l ...Show All
Windows Forms Telephony application
Hello, a greeting to all, somebody have experience on the telephony subject, I need to make an application that occupies the modem to make calls telephone to clients and reproduces a recording. The idea is simple, but I do not have experience ...Show All
Visual C# How do I create a simple table in C#
Hey, Iam designing a inventory software, and I need to make a table that shows the item number, description and price of each item. Iam not using any databases, just want to store all the info in 1 file. Whats the best way I can do this in C# First of all, thanks to everyone that his helping me, its been really helpful from all the information you guys have shared. And secondly, this XML thing as really ...Show All
Visual Studio Export Crystal Report to pdf
In my asp.net application, I export CrystalReport to pdf on disk. One reportdocument is produced by XML, and I run the part of code in Page_Load. The code is as following: if (!IsPostBack) { strReportName = "~/xml/PlaceOrder_" + ((String)Context.Items["Salute"]) + (String)Context.Items["FName"] + (String)Context.Items["LName"]; // Create report document ReportDocument crDoc= new ...Show All
Visual C# BSTR type in c#
I received a DLL which uses BSTR as string type: example : given in the include file DLLEXPORT BSTR WINAPI I2cGetInterfaceTypeStr (BSTR Interface); how do i access this function in vc#. This doesn't work. [DllImport("I2CAPI32.dll")] public static extern string I2cGetInterfaceTypeStr ( string Interface); Other functions of the DLL which don't use BSTR are working ok. Can anyone help me. Thanks, Jan I ...Show All
.NET Development Wrapper doesn't work
Hi, I have an unmanaged C++ application which calles C# DLL using COM Callerable Wrapper. My problem is that this application works in development machine, but not in distribute machine. I installed .NET Framework 1.1 and I wonder I miss some component to run in distribution machine. Does anyone have an idea about this Thanks, reneesol All the necessary interop code is shipped as part of .NET. It is ...Show All
Visual Studio 2008 (Pre-release) inheriting from itemscontrol - not able to bind to itemssource
I have a situation where I want to wrap a (custom)panel with some stuff (scrollviewer, track and some buttons). Therefore I created a new class that inherits from ItemsControl. In it, I use a style to set my panel as the itemshost. However, when I use this usercontrol, the itemssource is always null! < cft:TijdslijnVisualisatie Grid.Column = " 0 " Grid.Row = " 1 " DataContext = " {Binding ElementName=Comp ...Show All
Visual Studio Local work copies and IIS
Hi all.. new to VSS so please bear with.. OK I go into VSS thru the .NET 2003 IDE. I select the File/Source Control/Open from source Control . select the project I want to work on... now I have not checked anything out as of yet... correct me if I am wrong at this point. When I select the folder from VSS containing the project/solution I need to modify, IIS creates a new virtual folder named from whatever the folder in VSS is. A ...Show All
Visual Studio 2008 (Pre-release) ChemLinq
My first foray into technical blog posts (where I'm not pontificating in the comments): http://blogs.msdn.com/kfarmer/default.aspx Feel free to email other puzzles... Interesting posts. The indexing capabilities from Brian Beckman relates precisely to what I was referring to in a former post when I talked about a graph mapping. In that case the indexer is a denormalization of your primary graph of entities linking ...Show All
Visual Basic Why can't I UNLOAD a form in a comboBox handler ?
I have a problem which I hope someone can help me with, it only takes 2 minutes to replicate. If you have a form with nothing on it except for a single command button you can click on that button and UNLOAD the form using the following code: Private Sub Command1_Click() Unload Me End Sub However, when I try to UNLOAD the form due to a ComboBox event instead, using the following code for instance: Private Sub Combo1_Change() &n ...Show All
Visual Basic Programming - the best (modern?) approach....
I hope this can be steered towards the most suitable forum... I'm a hardware designer and started writing in 'BASIC' in the 1970's, which was light relief from FORTRAN. In those olden days, (when we weren't dodging the dinosaurs), we could get a book that described the language that we needed to learn. The language was rigidly defined and documented, and apart from a few odds and ends, that book was all you needed to write your program ...Show All
Windows Forms VB.NET vs AS/400
Many of my programs make repeated calls to our “elderly” AS/400 to get data based on account numbers, then process that data and write back to the AS/400 before moving on to the next account number. Using the .NET ODBC classes has worked& ...Show All
