abhishek_6023's Q&A profile
Visual Studio Express Editions How to append BSTR data type?
Dear all, I would like to append double variable and integer variable into BSTR data type. How could I do that Thanks. Following is my part of program, I just want to append the number "k" on the saveBSTR, but don't know how I should do.... Please help. Thanks. CComBSTR saveBSTR(m_editSaveDir); for(double k = 0; k < fr * dur; k++){ hr = pDet->WriteBitmapBits(frame_interval,width, height,saveBSTR); } You could use the _bstr_t wrapper class from comutil.h the += operator allows your to append char, wchar_t and _bstr_t values ...Show All
Visual Basic IDE VERY SLOW WHEN PROJECT IS OPEN BY ANOTHER
When I open a project with VS 2005 that is already open in VS 2005 by another user, the performance is extremely slow. If the other user closes the project, the performance returns to an acceptable level. Any ideas We had this exact same problem, but we able to solve it by disabling the hosting process ( http://msdn2.microsoft.com/en-us/library/ms185330.aspx ). This fixed things up right away. ...Show All
Visual Studio Express Editions how do i mute/unmute system sound?
1.how do i control the level of the "wave" volume and the "volume control" (as it appears in the windows volume controler) (C:\windows\System32\sndvol32.exe). 2.In addition how can i controll the main sound stream controler (the sound controll that changed by a laptop keyboard) Try using the Win32 API function waveOutSetVolume You can find more information at: http://msdn.microsoft.com/library/en-us/multimed/htm/_win32_waveoutsetvolume.asp Hope this helps, ...Show All
.NET Development manipulating PDF file
i am developing an application, which will store PDF files in the database in binary format.. the problem is that the links within the file must be preserved and once the PDF is retrieve from the database the link should still works properly and shows the page the link is pointing to.. is there any way you can get all the links the PDF have You have to extract the PDF from the database before it can be viewed. But yes, once you extract it from the database all the content is there, including any links. The links would function once the PDF was displayed in Acrobat Reader or any other application capable of rendering a PDF file. ...Show All
Visual Studio Express Editions VB 2005 - Compositing Operations (C.O.)
Hello Community! I'm quite new in VB (just since November06 ) and I'm looking for a fast way to overlap greyscale bitmaps in VB2005 (i.e. for every pixel R=G=B). I tryed to use the alpha-blending tchnique but it doesn't fit my porpouses (after I perform the C. O. the overlapping region is darkned). I would like the overlapping process to be a lightening process (the resultant color is always at least as light as either of the two costituent colors). In particular overlapping any color with white should produce white. Overlapping any color with black should leave the original color unchanged. I found an interesting program in VB6 that seems to to that http://www.vbaccelerator.com/home/VB/Code/vbMedia/Image_Processing/Compositing/arti ...Show All
Visual Basic MSFlexGrid.row = i
what is equivalent in the DataGridView Thank you. -hazz the .Item(i) element as per below is how I am handling the assigning of a row and setting values to that row's style properties. For i = 1 To n + 1 With Me .MarkersGrid.Rows .Item( i ).Cells(0).Style.BackColor = System.Drawing.ColorTranslator.FromOle(BKG_COLOR) .Item( i ).Cells(0).Style.ForeColor = System.Drawing.ColorTranslator.FromOle(Model_GetMarkerColor(i - 1)) End With ...Show All
Smart Device Development Debugging very slow
I have recently converted an application from VS.NET 2003 to VS.NET 2005. In VS.NET 2005, when I set a breakpoint and try to Step Into (F11) or Step Over (F10) lines of code the response time to get to the next line is about 4-5 seconds. This occurs with even very basic lines of code (such as x += 1). Debugging the same project in VS.NET 2003 had no noticeable lag time for Stepping Into simple lines of code. The application also runs normally on the device (in VS.NET 2005 debugger) when no breakpoints are set. I am debugging on a Dell Axim X51v Windows Mobile 5 device (not emulator), using wireless connection and static IP address. Can anyone tell me what the problem may be or what I should look at in my environment to fix the issue ...Show All
Windows Forms Regarding Setup Project in VS 2003
Hi! I am trying to buids large setup project(approx. 1.7 GB File size) but it gets failed giving error as "Not Enough Space available" . But I checked the memory size but there is enough Free space on C drive. I also build it as msi and Lossely compressed but it doesn't work. Should I use Installer available from other vendors The script is a jscript, and doesn't need a Sub Main. Anyways, the script does 2 things: copy the correct source file to the output directory, and update the FileSize column in the File table. ...Show All
Visual Studio Express Editions media time calculation
Hi need the maths calculation for this: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If OpenFileDialog1.ShowDialog Then mplayer1.URL = OpenFileDialog1.FileName Timer1.Enabled = True Private Sub Timer1_Tick( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Label1.Text = mplayer1.currentMedia.duration But It displays the length as 345.232 for example. how would I format this as 3:00 for example it may well be achievable. One nasty way maybe is to place the timer on the form, and start it when you are playing your file. Then calc the difference be ...Show All
.NET Development UDP Socket.Receive() on more than one port
I have to connect to a multicast group that sends out several thousand data feeds, each on it's own port. I want to create one instance of a UDP Socket on a dedicated thread, then use blocking Receive() to catch the datagrams. My problem is that it seems that Socket.Receive can only listen to one port at a time. I don't want to call BeginReceive for each port, because I don't want to use the threadpool. Any ideas Socket.ReceiveFrom(/*........*/); It's Specifically for Connectionless (UDP) Sockets... And You can Specify from Which End Point you have to receive... You can call this by specifying different end points on the same object of UDP socket object. Best Regards, Rizwan ...Show All
Software Development for Windows Vista Vista Screensavers
Does anyone know how the new vista screensavers were created I'm looking to create an application that uses the same sort of UI fluidity, but I can't get it from C# or WPF. Thanks! ...Show All
Windows Forms Loading forms
How can I load forms explicitly without showing them. Like there was a function Load (form_name) in VB6.0 that could be used to load forms without showing it. How can I achieve the same effect in VB2005 Thanx, I specifically wanted a way to trigger the Load event, but shifting my code to New will also do, in my case. As an aside, is there any way of trigeering the Load event without showing the form ( just in case, it is not possible to shift my code to the New from the Load event) ...Show All
Visual Basic Dead Keys and KeyPress event
Hi. I am designing a program to convert normal latin/american characters to cyrillic characters when a certain key is pressed, for example, when I press a letter in my keyboard, the program checks which letter was pressed and accordingly converts it to a specific cyrillic letter defined by me (Yes, I have a huge Case statement for each keyboard letter). I'm currently using the KeyPress event to do this. Here is a brief bit of example that is working, so you can see what I mean: Private Sub frmMain_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress LatKey = e.keychar Select Case LatKey Case "q" CyrKey = " " Case "w" CyrKey = " &q ...Show All
Visual C# How to Add ToolStripButtons on a Child Form Dynamically...
hi... In my MDI application , i have one child form(ChildForm) & object of that form i am adding on every click of one MenuItem(i have three Menu items- ManuItem1,Manuitem2 & menuItem3) in my parent form & on click of the MenuItems i'm making that form(ChildForm) as a child form of my parent & i am displaying that child form. Now i want that child form to have three ToolStripButtons & three events for that toolstripbuttons. i have added 3 ToolStripButtons while making that ChildForm initiallly only. I have made them public also but they are not available when i want to access them in my ParentForm class. I am clicking each MenuItem & declaring object for childForms. I am able to dispaly the form but i am n ...Show All
SharePoint Products and Technologies Auto Forward User to 'My Site'
Dear all, How to auto forward user to their My Site. Currently when user login, they will see the master Sharepoint Page. Thank you What is the javascript to redirect someone to another site Someone gave me this and I put it in a CEWP and it doesn't do anything. <script type="text/javascript"> <!-- window.location = " http://www.google.com/ " //--> </script> Can anyone help Thanks. Bailey ...Show All
