Tomay's Q&A profile
Software Development for Windows Vista CreateFile() on C:\Program Files directory on Vista
I was using CreateFile() to create a file under some directory in Program Files. I wanted to see the "elevated" security. The result is not what I had expected. This is the piece of code I am using: memset(&security_attributes,0,sizeof(security_attributes)); security_attributes.nLength = sizeof(security_attributes); security_attributes.bInheritHandle = FALSE; handle = CreateFile("c:\\Program Files\\test",GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, &security_attributes, OPEN_ALWAYS, FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH, (HANDLE)NULL /*Template File*/); if (handle == INVALID_HANDLE_VALUE) ...Show All
Visual Basic IDE, compiling, copy and paste, debug are all slow
Any tips on what is making the project so slow. I have about 5 report server projects, and about 3 other projects. One for My Generation and another Base Class project with one form. My machine is a 2.0 Intel with 1 gig of ram. Some times hitting enter causes a huge delay or selecting a chunk of code (10 - 20 lines) and doing a ctrl-c causes a huge lag and then again when I do a paste. Trying to debug by step thru no longer lets me do edit and continue. I get the error "Cannot currently modify this text in the editor. It is read only" Compiling a 6 meg project after simple changes takes a minute or two to come up. Is it a sourcesafe issue References Mcafee Anti virus Thanks, Phil ...Show All
Visual Studio 2008 (Pre-release) The certificate 'CN=localhost' must have a private key that is capable of key exchange.The process must have access rights for
Hi, My WCF service has following security settings:- at server side(web.config) :- < behaviors > < serviceBehaviors > < behavior name = " myBehaviour " > < serviceDebug includeExceptionDetailInFaults = " true " /> < serviceMetadata httpGetEnabled = " true " /> < serviceCredentials > < serviceCertificate findValue = " localhost " storeLocation = " LocalMachine " storeName = " My " x509FindType = " FindBySubjectName " /> </ serviceCredentials > </ behavior > </ serviceBehaviors > </ behaviors > < bindings > < wsHttpBinding > < ...Show All
Visual Basic CheckBox_Click Name
Private Sub ExcluyeOC( ByVal sender As Object , ByVal e As System.EventArgs) Handles CheckBox1.Click, _ CheckBox10.Click, CheckBox11.Click, CheckBox12.Click, CheckBox2.Click, CheckBox3.Click, CheckBox4.Click, _ CheckBox5.Click, CheckBox6.Click, CheckBox7.Click, CheckBox8.Click, CheckBox9.Click, CheckBox10.Click, _ CheckBox11.Click, CheckBox12.Click Me .strExOC.Add( Me .Controls( "txtNumOC" & Mid( Me .ActiveControl.Name, 9)).Text) Call LlenarContraRecibo() Then I need to set the Checked = True of the CheckBox that fired this procedure. How can I do this I dont know wich one of the 12 CheckBoxes did the job, How can I know :) hehe :-) Everyone is right in their own experience ...Show All
Visual C++ Error in opening the file in MFC
Hello All i am trying to transfer a file over the socket but as soon as i run sender code....the receiver code throws an assertion error Program: H:\.....\receive.exe File: filecore.cpp Line: line 118 Now i guess it is unable to create the file properly....this is the code i m using for creating the file at receiver side CFile file; char temp[1024]="H:\\sam.cpp"; cout<<temp<<endl; try { file.Open(temp,CFile::modeCreate|CFile::modeWrite|CFile::typeText); } catch (CFileException* e) { // Something went wrong. AfxMessageBox("Error in creating File",MB_OK); e->Delete (); return ; } The file mentioned is not present so i m creating it from sc ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where is the PositionColoredNormal Vertex type in XNA?
I'm migrating from mdx to xna but I can't seem to find the xna equivalent of the mdx vertex type 'PositionColoredNormal' how do i get this vertex type in XNA I just want a texture-less colored cube with lighting, it seems strange that there is a more complex VertexPositionNormalTexture type, but no VertexPositionNormalColor type... Am I missing something here Here's a link on implementing a vertex structure: http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series3/Vertex_format.php ...Show All
Windows Forms Designed Bound Datagridview Empty
Hi, I have the following Problem: ( Visual Studio 2005, Dotnet 2.0 MySQL, c# ) Whenever I bind my Datasource to a DataGridView with the designer, I can see the columnheaders in the designer as expected; but the Datagridview is never populated with the Data. When I start the Application, the DataGridView remains empty. ( I worked around the mysql "double-dot" bug in the select statement and a datapreview works alright) When I bind the DataSource manually to the DataGridView it is filled properly after Application startup. I am sure the problem is a noob one - but please help anyway. tia well, yes.. with the fill Method added manually it works. :-) I only thought there was some way to init the dgv ...Show All
Visual FoxPro Disappearance of Important Data
Hi experts, I’m using the Visual FoxPro version 6 to implement the database system in the server. The database system is shared by all the users in my office. Sometimes, the server is down. I can see the users are not aware of it and continue working with the system. Is the reason of not capturing data properly and existing data are out of control when the server is down Please guide me. Thank you. Good day to you all and thank you for your guidance. Alex, you are right that I’m using DBF as a back-end and do not have a client/server system. Also, the users (about 18 users here) are always connected to the server database. The server comes with Window Server 2000 operating system. I access data by us ...Show All
Visual Studio Team System urgent...Dynamic value
Can someone please tell me while running a web test how to capture a dynamic value from the web test response.e.g., i want to capture an insurance ID when i enter all the member details and could be able to use this ID to enter in my other scripts while running them. You'll need to use an extraction rule to pull the ID you need out into the web test context. From there, you can use it in a later request. Right click a request and select Add Extraction Rule. If you need to create a custom extraction rule, here's a how to that explains what to do: http://msdn2.microsoft.com/en-us/library/ms243179.aspx Josh ...Show All
Visual Studio 2008 (Pre-release) WMV not Streaming
Hello All, I have a .WMV that was encoded to buffer for 3 seconds before it starts to play. However, in my WPF application it seems to load the entire video up front before it starts to play. Can anyone provide any help as to why this is Thanks in advance, Dvl Dvlnblk wrote: Hello All, I have a .WMV that was encoded to buffer for 3 seconds before it starts to play. However, in my WPF application it seems to load the entire video up front before it starts to play. Can anyone provide any help as to why this is Thanks in advance, Dvl I found the solution, when you encode the movie you have to set the bitrate to "constant" and this will allow for a progressive downl ...Show All
.NET Development Can one help me
How i can activat the port forwarding in my TCP client/server C# program. I did this forwarding but the connection doesn't work, althougt I'm sure that my program is work proberly becuse it's success to connect to a real IP, and i did the port forwarding in my router to my lan pc IP but the program failed to complete the connection again. I think I need some commands in C# code to make my program suppurted to traeate with the port forwarding in the routers. hope u can give me useful help for this problrm ...Show All
Smart Device Development Debugging DLL...
Hi All, How can i debug a dll from my application written in C#. Dll is written in native code. I did not able to debug both simultaneously. I have checked the forums but did not find the solution. thnx Hi Visual Studio 2005 currently does not support attaching the native and managed debugger at the same time. You can either debug your managed application or your native DLL. To debug the native DLL: Set the native DLL as your startup project (right click on DLL project -> 'Set as StartUp Project'). In the DLL project settings under 'Configuration Properties' -> 'Debugging' set the 'Remote Executable' to your managed application. Visual studio will launch this executable when you start debugging your DLL. ...Show All
Software Development for Windows Vista WWF Scenario using ASP.NET
Hi, I want to implement a WorkFlow in ASP.NET using Windows Workflow Foundation. I have a Web Form where user 1 fills in the form and submits it. This form and the saved data is then sent to user 1's boss who reviews the data and submits the Web Form to his boss and so on and on until it goes to the top of the Organisation where it is finally approved or rejected. Each time the form is subnitted an email is sent to the next person on the Organisation hierarchy letting them know that the Web Form is awaiting their approval. 2 Questions: 1) Can I use Windows Worflow Foundation in conjunction with ASP.NET. Alot of examples I see use WinForms 2) In relation to my Business Process Scenario can I implement above using ASP.NET and ...Show All
Visual Studio Breakpoint will not currently be hit. No symbols loaded for this document.
I have been 'developing' with Visual Studio 2005 for about 3 weeks now - primarily .NET class libraries developed with VB. I am coming from VB6, although I did a lot of development with Visual C++ several years ago, so I am still trying to come to terms with the debugger. I have read many threads posted by people who are having a problem with breakpoints, specifically with the message in the subject line above. There have been many suggestions on how to fix this problem. Sometimes these suggestions work, sometimes they do not. Most of the suggestions involve deleting DLL and PDB files and rebuilding, or restarting Visual Studio. None of them suggest any problem with something the developer has done or any problem with the configuration of ...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
