Luis Martinez's Q&A profile
Visual Basic Async event or callback from the c++ dll to the vb.net application
Hello I have an vb.net application that need to perform async tcp/ip communication with some boards. For this communication I have an c++ win32 dll . here is the question : when my dll asynchronically receives some data he must immediately notifies about this and send it to the main vb.net project , how do I do it Actually I want to create and set an event in my dll for this purpose but I don't know how to catch this event in vb.net application May be I need use the callback for this but again I don’t know how to do it thanks in advance I was wondering what protocol you are using because several of the ...Show All
Software Development for Windows Vista I Have some ideas which i think they are new to Windows Vista
I Ask How i can deliver my own ideas and innovations about Windows Vista and IE to thier developers teams please i want to know Please I want any one to tell me how i can do this and , my e-mail is : moh_omar52@hotmail.com thnks for all At Microsoft. I'd say that your best chances are to post in these forums; I would imagine that the developers stop by once in a while to see what people are thinking. Also another good way is to talk to some developers directly in a chat-room... See here http://msdn.microsoft.com/chats/ ...Show All
Visual C++ linker problem
I am getting a LNK2019 and a LNK1120 when i buil the folowing code. #include <iostream> using namespace std; int main() { cout << "Hello World" << endl; } what is the problem The main problem is that you're not telling us what it's trying to link and failing. There's nothing wrong with this code, the problem probably has to do with the type of project ...Show All
Visual Studio How to create file associates in the Solution Explorer?
For example when you have a file of type Default.aspx and Default.cs it would make a tree branch type of architecture. I'd like to add a .js file for example and have that file put into the branch that the solution explorer creates for the aspx file and it's code behind. Thanks, Hello Darren, Assuming you control the addition of that file to the project, getting the EnvDTE.ProjectItem for the parent node and adding the child node to it's EnvDTE.ProjectItems to it should do that. Rusty ...Show All
Visual Studio Using SQL Native Client VS 2005 April CTP
Hi, I can't seem to get crystal to use the new SQL Native Client to connect to a SQL Express database, when I try I get the error : Logon Failed. Details: ADO Error Code: 0x Source: Microsoft OLEDB Service Components Description: Format of the initializartion string does not conform to the OLEDB specification. Is there something I have to do to work around this issue Maybe it's fixed in the June CTP :-) I checked with the developers and this has been fixed in recent builds. I would expect that you would be seeing this in the next CTP. Keith - Business Objects ...Show All
Visual Studio Express Editions Registration Benefits
Where can I download the promissed e-books I can download the stockphotos, icons and two components, but not the promissed e-books. Does anybody else already got it I downloaded MicrosoftR Visual Basic 2005 Express Edition: Build a Program Now!, an e-book in PDF-format, from the Visual Studio 2005 Registration Benefits Portal that the "Thank you for registering" e-mail pointed to. If you tried that too but failed, you may have to install the special Microsoft File Transfer Manager first. ...Show All
.NET Development File creation anomoly
Writing an app in VB.net to dynamically create CLASS files for VB 6.0. As you know, these are .CLS files and are in plain text (alot like VB.NET .vb files) Using the StreamWriter class to put the require first line in the .CLS file (disregard quotes): " VERSION 1.0 CLASS " When closing the stream, and viewing the contents of the .CLS file, the first line has these strange characters at the beginning. Example: " i VERSION 1.0 CLASS " I have not seen this behavior in VB 6. I could create these files without problem. Here's example code that should cause the condition to replicate (uses VB.NET): Impor ...Show All
Visual Basic how to save a datagrid record into the database
i had created an ordering form which have a datagrid used to add an item at a time into the datagrid row, after all item have been confirm, a button use to save all the data in datagrid into the database. what is the coding to add each row of record at a time and how to save it into the database Hi, If you're using Visual Studio 2005, this MSDN section is about Saving Data for your application. http://msdn2.microsoft.com/en-us/library/ms171932(VS.80).aspx Best regards, ...Show All
Visual Basic Windows Forms Problem
Am I going mad I have a form with a bindingNavigator bar and a bunch of text box controls. It appears that Click events on the bindingNavigator buttons fire before the control that loses focus fires the Leave and LostFocus events Is this behaviour by accident or design or am I doing something wrong The order of events posted is fro entering and leaving the same control... I would suggest moving your code to the validating event. ...Show All
Visual C# How to create a base class windows Form?
Hi All, I wanted to created a windows form with functions that are reusable. For example, creating a function to connect to the SQL server and validate user's name and password or insert record to SQL Server just by calling the AddRecord function. TIA For example, try this: public class BaseForm : Form { public void MyMethod() { MessageBox.Show("Hello"); } } public class DerivedForm : BaseForm { public DerivedForm() { MyMethod(); } } &nb ...Show All
Visual Studio Partial rebuild of a target?
Hi I'm using batching on a custom task to call the GNU C-compiler to compile a bunch of files, something like this: <ItemGroup> <SourceFiles Include="*.c"/> </ItemGroup> <ItemGroup> <IntermediateFiles Include="@(SourceFiles->'$(INTDIR)%(Filename).o')" /> </ItemGroup> <Target Name="Compile" Inputs="@(SourceFiles)" Outputs="@(IntermediateFiles)" DependsOnTargets="Clean" > <GNUCompile Tool="$(CC)" Arguments="$(CPPFLAGS) $(CFLAGS) -c %(SourceFiles.Identity) -o $(INTDIR)%(SourceFiles.Fil ...Show All
Visual Studio create a report that is made by different crystal reports
Hi, i want create a report that is made by three different crystal reports (.rpt). Each crystal is a page of my final report. Normally i create a ReportDocument (my_report that read the rpt), after made a Load and then print the report to CrystalReportViewer by set CrystalReportViewer1.DataSource=my_report and CrystalReportViewer1.DataBind(). But in the situation i want i don't know how to do it. There is any suggestion Thanks Larokas ...Show All
SQL Server Poison Messages - 5 times's a charm
Hello again, I have some poison message detection in place, based on the BOL sample. My problem is that after the 5th message retry my queue goes down - that is the fifth retry on any message. In actuallity, the first message is retried 3 times and it is taken off the queue [for real], the second message comes in and on the second retry - pooof - the queue is down. I though the poison mechanism should work on a per message basis. It there a setting for the queue I missed Is my only chance for to fix this: re-enable the queue upon BROKER_QUEUE_DISABLED event notification Thanks, Lubomir If what you're looking for is a retry mechanis ...Show All
.NET Development Edit And Continue
Hello, How can E&C be activated on a x64 windows box against a x86 application thanks if you cant get e-n-c working, here's a solution that i found works.... i had a 2003 project i converted to 2005 i created a brand-new project, and added all the forms manually. then, i added the datasets (only the xsd file) and the crystal reports (only the rpt files). i let the custom tool re-generate the class files for that stuff. voila! edit and continue now works for me!!!!! yeee-haaaa! hope this helps, george hardy ...Show All
Visual Basic Innerhtml behavior
I recently switched from vb6 to vb.net 2005. I imported the vb6-code into vb.net and noticed the innerhtml behavior changed. When using the webbrowser control to navigate to the following url: bb.Navigate " http://www.betfair.com/betting/LoadMarketDataAction.do mi =" & EventId, 0, "predictionManager" the returned vb6-innerhtml is different from the vb.net-innerhtml. vb6 -> text = bb.Document.documentElement.innerHTML vb.net -> text = bb.Document.body.innerHTML What am i doing wrong Regards, Ronald Ronald Wessels wrote: vb6 -> text = bb.Do ...Show All
