monchhib's Q&A profile
Visual C++ Using Windows API with managed code
I am trying to read data from a Tape using the Tape Backup functions in Win32 in managed code. The problem is that the only function that I can find thah will read data from tape is ReadFile(), whose 2nd argument is an LPVOID. The buffer that I can use to store the tape data is an array<Byte>^ type, thus I need to convert the managed Handle ^ to an LPVOID. I tried using PInvoke, however the MarshalAs:: has no such type, LPVOID, among its parameters to convert. Does anyone know of a solution to this problem You can use pin_ptr ( http://msdn2.microsoft.com/en-us/library/1dz8byfh(VS.80).aspx ), to create a buffer usable by the unmanaged subsystem. I would think that there are alternative ways to read from tapes, ...Show All
SQL Server How to pass mult-valued parameters via webservices render method?
Hi there, Trying to update the value of a multi-valued parameter for use in programmatically genereating a report via the RS webservice's render method ... but ain't working. Any ideas on how this is done thanks - wg I tried this: ReportParams[4] = new RSWebReference.ParameterValue(); ReportParams[4].Name = "QuestionAnswerAnsLabel"; ReportParams[4].Value = "{[Question Answer].[Ans Label].&[Strongly Agree], [Question Answer].[Ans Label].&[Agree]}"; ... and got an exception of invalid parameter value. I found the answer in the end, it seems that you just repeat the same parameter name for each value in the multivalue list. http://groups.google.co.nz/group/microsoft.public ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D PIX 360 Demo !!!
"3D PIX 360" - Alpha Demo 1 ... Download it at ... http://games.archor.com ... OR ... from the 360 Projects Section of ... http://www.threesixbox.com http://www.threesixbox.com/project/ id=a613b18d7c - > ScreenShot -> http://www.archorwright.com/games/xbox360/cade_3d_360_samps.jpg NOTES: View Extruded "3D Embossed Effects" on 2D Images on the XBOX 360 via XNA GSE. Controls: Use the XBOX 360 Controller - Left Stick to Spin Around. Press the Right Trigger to Move. Press "A" button to Reset the View to Center. It is Still in Early Alpha Testing, but, worth a look. ...Show All
Windows Live Developer Forums Distance between two addresses
Is there a way to find out the driving distance between two given addresses without plotting the route We have a list of addresses and we need to check the distance between each address from a user entered address. Any help would be appreciated. Thanks in advance. Hi, using virtual earth map control, i guess you could try with a hidden map where you could calculate the route distance. hope this help ...Show All
Windows Forms custom usercontrol
Hi, i want to make a usercontrol that contains a dgv and a binding manager. the user control should provide the normal properties windows of both the binding manager and the dgv. how should i go about doing that, what is to be implemented and inherited From the top of mu head I'm on net 2003 so it might be a little diff, Imports System.Windows.forms Public Class DGV Inherits DataGridview Public ReadOnly Property Internalbindingmanager() As BindingManagerBase Get Return CType (BindingContext( Me ), BindingManagerBase) End Get End Property End Class ...Show All
SQL Server MICR Font Issue When Exporting to PDF
Hi, I'm using Reporting Service to print checks. Everything seems ok when I design and deploy and view the reports. But when I try to export to pdf, the MICR font I'm using does not work. I've tried a couple of different MICR fonts from the web and they either get replaced by a standard font or disappear altogether. I would love to know why that is. Thanks in advance, Tom Could you help me fix my MICR report like you fixed yours I tried increasing the height and width of the text box. I need help ASAP. Thanks ...Show All
Visual C++ Refreshing Windows
I am developing a MDI application and I can not get my Windows to refresh. I have a CFormView window attached to a data document. The data document collects data from external hardware and processes it. This process can take several minutes. If I switch to another application while the data document is collecting data and then switch back my application windows don't update until the data document finishes, giving the user the impression that the application has crashed. How can I get the CFormView window to refresh before the Data document has finished processing I have tried RedrawWindow() and this does not work. Any help would be appreciated. Mike Edmans wrote: I am developin ...Show All
Visual C# Thread cannot access static variable
Hi there, I have declared a static string in my class public static string a = "lockvariable" ; and am then trying to access it from a thread (which I should be able to do shouldnt I ) public static void theThread() { Program .f.postFeedback(1, a); Program .f.postFeedback(1, b); File .Copy( "c:\\vid.wmv" , "c:\\vid2.wmv" ); Program .f.UpdateTransferList( Int32 .Parse(idTransfer), 2); Program .f.postFeedback(1, "Operation Completed" ); TransferInProgress = 0; MyThread.Abort(); } I am getting the following error: System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object." Sourc ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D3DERR_NOTAVAILABLE while build of first example in help how to do
I used to code in pascal, cobol, assembly, basic, etc, but not C. From: Your First Game: Microsoft XNA Game Studio Express in 2D following along and doing the first build, I get the error above. I did not think I was calling the 3d engine only the 2d. I cannot find any help on the error, where to look, etc, except what is in the error window when you cursor over it. I cannot figure out how to copy the error in that popup window to look at it further. I know some dislike nubies, but please help if you know the answer. Its disheartening to type in only 6 lines of code and not be able to debug it! To say the least. Thanks OH OH OH, I figured out how to copy the error: Error 1 Building content threw InvalidOperationExcept ...Show All
SQL Server Deregistering the SPN after installing SP1
I'm running the evaluation software on a development machine running XP and everything was fine until I installed SP1. Now I can't get services to run, and the error log displays: "The SQL Network Interface library could not deregister the Service Principal Name (SPN) for the SQL Server service. Error: 0x2098. Administrator should deregister this SPN manually to avoid client authentication errors." Looking through previous questions, I see similar issues where the SPN needs to be deregistered, but my problem looks different; I can't even load services on local only. I'm downloading the SP2 from November, but thought I'd see if anyone else is/has had similar issues. This is what Microsof ...Show All
Smart Device Development can vb.net 2005 support visual fox pro database & tables????
i had symbol mc50 pocket pc. And i m using vb.net 2005. Can it support visual fox pro database & tables. Can giv me some sample code that manage add, delete, update, dataset, connection string. Thanz i had facing one problem that is i cant create new project. The status bar written "creating project DeviceApplication1 project creation failed". I had see all the forums disscuss that IE7.0 can effected, but my pc doesnt install IE7.0. So what is the solution. Besides, when first time i install the visual studio 2005, there will have "7494682B-37A0-11D2-A273-00C04F8EF4FF" of error. Thanz. ...Show All
SQL Server hierarchy
hi All, i am facing a problem while creating a simple product hierarchy in SSAS. i am able to create the hierarchy and deploy the cube,but in the browser while analysing i drag and drop the hierarchy .but only the key are displayed not the caption. Please do help me with this thanks in advance Lalitha hi Matt Carroll Thanks , I solved it. You'r information help me a lot Regards Lalitha ...Show All
SQL Server Help please! 32 bit Faircom ODBC in 64 bit
I have faircom ODBC plus drivers (32 bit) v3.12 for CTree which I'm trying to use to link a server in SQL 2005 64 bit, I get a connection error and can't make it work, is there a way to link a server using 32 bit ODBC drivers in a w2k3/SQL2k5 64 bit combo or do I have to go back to 32 bit all the way it seems Faircom doesn't have 64 bit ODBC driver. Any help really appreciated. Javier Thanks for your answer, but what I need is to access the CTree database files from SQL and not the other way around. SQL Server seems to ignore the 32 bit drivers or at least it doesn't display them in the drop down list so I can't create the required Linked Server. If I use the ODBC utility in \windows\syswow64 the drivers ...Show All
Visual C# Generics and Virtual Function Calls
My question is regarding to generics and optimizations involving virtual function calls. Specifically lets say I have an interface IKernel. Now lets say I define a class - Machine<TKernel> where TKernel: IKernel Now if I call any function on a member variable that is of type TKernel the compiler emits a callvirt instruction on the IKernel interface. I also realize that a callvirt instruction could be optimized by the JIT compiler since it knows the type of the object. But does it I am dealing with CPU bound code here and would like to avoid virtual function calls if possible. I also noticed that an overloaded indexing operator also emits a callvirt. Is this optim ...Show All
Software Development for Windows Vista [RuleWrite("somefiled")]
Hi Can you give me a good example how to use [RuleRead/Write/Invoke] with PolicyActivity I don't get example from manual... I want some pratical real life example how to use and when :) Jedrzej This should get you going - http://wf.netfx3.com/files/folders/rules_samples/entry309.aspx http://wf.netfx3.com/files/folders/rules_samples/entry819.aspx http://wf.netfx3.com/files/folders/rules_samples/entry8431.aspx All the resources in here also should give you good pointers: http://wf.netfx3.com/files/folders/rules_samples/default.aspx THanks, Kushal. ...Show All
