Miguel Loureiro's Q&A profile
Visual Studio Express Editions GDI+ Mapping Question
I would like to map world coordinates to device coordinates, but I'm a little unsure on how to do it. Suppose I have world extents of (100,100 - 1000,1000) and device extents of (20,20 - 300,300). Page extents are in pixels and identical to device extents. Can someone give me a clue on how to do this. Thanks Peter, I'm aware of using positive up. Just make the middle value of a 3x3 matrix = -1. However, if you are using text it will be inverted. Bob Powell's site shows how to solve that. Since cartesian coordinates is the math world I would think GDI+ would have a dire ...Show All
Visual C++ Will VC8 play nicely with VC6?
I am working on using VC8 to build a new version of dll that is used by a number of applications that were built with VC6. Rebuilding the VC6 applications is absolutely not an option . I need to know what problems to expect with this and how to address them. In particular, I am worried about .manifests and the linkage to msvcr80.dll (vs msvcrt.dll). What should I be watching for, and what can I do about it It will work, as long as you don't pass around pointers to memory between them (e.g. allocating memory in a VC6 based component and freeing in VC8, or vice versa). msvcr80.dll can coexist in the same p ...Show All
Visual Studio Express Editions Question about errors in Swimsuit Calculator project
I just converted a second project to VB 2005 EE format from VB 6 called "Ami Mizuno's Swimsuit Calculator!" and there were 2 errors in it which are the following: ================================================================== Error 1 'Public Event Load(sender As Object, e As System.EventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. C:\Visual Basic Projects\Ami Swimsuit Calculator\Ami_Swimsuit_Calculator.NET\Form1.vb 9 3 Ami_Swimsuit_Calculator This is found in Form1.vb, Line 9, Column 3. I managed to fix this error by adding a RaiseEvent statement thanks to the corre ...Show All
Visual Studio Rotate a Report
How do you rotate a report when sending it to the print preview I have a report that i want to rotate so it prints on the side Do anyone have an idee about this It doesen't work. I have tried this, and when i print it on paper it is being printed as portrait not landscape. The preview is shown in landscape. ...Show All
Visual Basic Setting walpaper
Hello, i was wondering if there is a easy way to set the walpaper in vb on windows xp and windows 2000 to a bmp or a jpg or well any other type of image supported by windows i know there a lots of resourses about seting the wallpaper to a bmp but if anyone know of away to set it to a jpg i would be very greatful Thanks There are api calls to set it. If you use a jpg, it is converted to a bmp by windows anyway. see here: http://www.vbforums.com/showthread.php t=354533&highlight=wallpaper ...Show All
Windows Forms Date time Format
Could you please let me know to represent the following information which dataformat I should use. 2005-01-02 15:57:19.237 till second I am using "MM/dd/yyyy HH:mm:ss" but for microsecond in the above eg 237, what should I use Thanks fff http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemglobalizationdatetimeformatinfoclasstopic.asp frame=true ...Show All
Visual Basic Adding a row to a control bound to a datasource
Hi, I have an application that consists of multiple combo boxes, list boxes, etc. Most of the combo boxes are bound to a datasource. What I wanted to do was add one row to each combo box with the value of "_None" so that if the user had selected an entry and then did not want the entry, there was an easy solution - select the "_None" entry. However, when I tried to add this row to a control having a datasource I get the following error message: "Cannot modify the Items Collection when the DataSource property is set. System.Windows.Forms" I would appreciate any help with this - but, I don't want to have ...Show All
Visual Basic Refactor slow and not quite stable
1. Opening VS2005 is slower, and opening a project is slower. No big deal, but if you start opening files before DXCore is finished loading, it hangs for quite a while. 2. Cursor movement is jerky, and somewhat annoying. This is on an AMD 3200+ w/GeForce6200. 3. Several times I accidentally hit both mouse buttons and/or keyboard keys, causing an IDE crash with loss of data. I mention this only FYI; these would not be big problems if I had found it useful (especially given that it is given.) The uninstall seemed to have worked. I will mention the IDE itself is very stable compared to Beta. Bravo! ---Mike ...Show All
Visual C++ which situation does'error C2039' happen?
when i compile my code,i get this error error C2039: 'Import3dmax3DS' : is not a member of 'C3dWorld' see declaration of 'C3dWorld' but i have define 'Import3dmax3DS' in 'C3dWorld' which situation does 'error C2039' happen it went wrong here ...... C3dObject* pObject = m_pWorld->Import3dmax3DS(szPath, FALSE); ...... and i declare it here class AFX_EXT_CLASS C3dWorld : public CObject { DECLARE_DYNAMIC(C3dWorld); ...... C3dObject* Import3dmax3DS(LPCSTR lpszFileName, BOOL bAddToList=TRUE); ...... t ...Show All
Visual FoxPro Report Question with multiple detail lines
We have a report that has 4 groupings. What we need to count is really the number of group records, not detail records in each group. We would like to count the number of distinct models in the inventory. Then under these distinct models are different Model Numbers that point to slightly different versions of the car. For example: LINCOLN VEHICLES (GROUP 1) Aviator Models: (GROUP 2) MODEL CODE : UAB878 (GROUP 3) Stock Number, Color, Model Code, List Price , OPTIONS (GROUP 4) P1234 , RED , UAB878 , $54,750.00 *** DETAIL LINES BELOW WHICH HAVE EACH OPTION***** A46 32 VALVE V8 Z34 5 SPEED AUTOMOTIC TRANSMISSION 67T NAVIGATION SYSTE ...Show All
Software Development for Windows Vista play a stream
Hi,i have the following problem: My computer(client)is connected to a server using a socket.The server sends an avi stream through the socket.How can the client play this avi stream....without saving it on the harddisk Any ideas....sample codes....anything.Thanks You'll need to write a source filter to read the data from the socket and deliver it to the decoder filters. You'll probably want a push-mode source filter (modelled on something like the ball sample), that splits the audio and video and delivers them to the decoders on separate output streams. G ...Show All
Windows Forms Where to download TaskVision Database!
I can not install TaskVision. Who can give me a DataBase Script to download! Thanks a lot! are you using the VB version or C# If you are using the C# version, you can download and install the server code for vb, this will set up your database for you hth ...Show All
Windows Forms accessing a form and its controls knowing the formname
In VBA I used to pass the form object to functions for further manipulation sub cleaform(frm as form) dim ctl as control foreach ctl in frm.controls ctl.value=null ..... May I replicate the same behaviour in .NET, I mean, using the form name to manipulate its controls.... thanks Well, that's the nice thing about object-orientation. Your method should take an object of type Form (actually, System.Windows.Forms.Form) . You can now pass an object of any Form-derived class to your method. You don't have to know in advance what class the object is, just what class it ...Show All
Windows Forms Current Record
Hi, how i can get the current record in the dataset that i select in the datagrid Thanks Alejandro Dim cm As CurrencyManager = CType(Me.BindingContext(grdMyGrid.DataSource, grdMyGrid.DataMember), CurrencyManager) Dim dv As DataView = CType(cm.List, DataView) Dim dr As DataRow dr = dv.Item(cm.Position).Row ...Show All
Visual Studio Tools for Office strange error in excel
I have a very strage error when using Excel in my application. When trying to execude the following code: excelObj.Cells(1,2) = "something" I get the exception: ystem.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC. at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at Microsoft.Office.Interop.Excel.Range.set__Default(Object RowIndex, Object ColumnIndex, Object ) (...) I`ve spent hours looking for some solutions through the web, but ...Show All
