kendy's Q&A profile
Visual C++ Problem using FindFirstFile
Hi, I intend to find the name of any file of a directory. This is the function that I am using for the purpose - void print_first_file_name(char *str) { LPCWSTR DirSpec; DirSpec = MultiCharToUniChar(str); WIN32_FIND_DATA FindFileData; HANDLE hFind = INVALID_HANDLE_VALUE; hFind = FindFirstFile(DirSpec, &FindFileData); if (hFind == INVALID_HANDLE_VALUE) printf("Not working."); else { printf("First file name is %s and its file size is %d.\n", FindFileData.cFileName, FindFileData.nFileSizeHigh); } } I want to know the name of the file that is present in my the folder 'd:\test\' For testing purpose, I have kept a file called hello.bmp in the folder. When I pass "d:\\test\\*" as t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader states, etc? (HLSL effects not working right)
I'd like to call upon all the shader gurus here for some help :) I've been experimenting with writing some of my own effects, meaning I'm a HLSL newbie, and have been using NVIDIA's FX Composer to do my work. After producing a cool (albeit simple) effect, I decided to try using it in my little model viewer. The problem is that the way it shows up through XNA is different than the way it shows up in FX Composer, and I can't figure out why. You can find the code to my effect here: http://www.hiranipra.com/data/help_attach/gb1_shader.txt - it's just fairly simple environment mapping-ish stuff. A screenshot of what it looks like in FX Composer: http://www.hiranipra.com/data/help_attach/FxComposer1.jpg - it's hard to tell, but the ...Show All
SQL Server [newbie] Execute SQL task bypassed, why ? [because of Source XML validation!]
Hi! I meet a strange behaviour which is probably caused by my SSIS newbie nature. I have a Execute SQL Task, used to drop and create some temporary tables. It works when invoked manually. I have chained a Data Flow Task behind, but when I launch the whole process, although the Execute SQL tasks goes green, it is not executed (then the Data Flow fails because the required tables are missing). Would anyone have any hint on why the execute sql task seems to be bypassed kind regards Thibaut I am now restarting the package from scratch, and making it configurable ("keeping it in the dark"). I'll report back if I meet the same issue again. thanks! ...Show All
Windows Forms General question: how do we search on the various dotnet languages here?
There is a lot to wade through in this Microsoft developer forum. Is there a way to search for messages containing the Microsoft supported dotnet languages C# or C++ Even searching for C# and C++ as strings would be very helpful, of course. Certainly on a Microsoft site as this it is possible to search on these somehow, obviously. As such, please pardon my significant ignorance in this regard. Each forum has a search box located at the top left and if you put your search criteria in that box within a certain forum ...only that forum will be searched....also in the lower left hand corner there are some advanced filtering tools to help you wade through these forums...To search all forums use the search box located on the ...Show All
Windows Forms Problem with HTMLEditorControl
Hello. I am using a HTMLEditorControl (Microsoft.ConsultingServices.HtmlEditor.HtmlEditorControl) It has an InnerHTML property which I use to save the control's content to the database (mysql) But the problem I have is that instead of Enter small squares appear. So those squares appear in another app, which reads from this database. I suppose this is all about different encodings, but don't know how to solve it. I am using Visual Basic 2005, MySql Database, and the htmleditorcontrol mentioned before. Would appreaciate any help. Best Regards, Alberto Abudara. ...Show All
SQL Server SQL Express Newbie
I have only used MS SQL 2000 and mySql before. I've never used MSDE or SQLExpress. I understand you can develop web apps locally, but can the app be deployed to your hosting site without SQL Express 2005 being installed there Or do you have to build a database on the host using MSSQL2000 and transfer your data from the Express database I'm a little confused about this and don't want to develop something with VWD and SQLExpress that I can't publish on my host site... Thanks for any help Terry Hi, your hoster will need to have a SQL Server (either Express or Standard) edition installed in order to let the database run on the hosting machine. If your hoster only has MSDE / SQL 2k on the servers, I wo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animating Billboards Using A Single Texture
I just finished a basic billboard class that is capable of reading in multiple textures and animating. However, I would like to read in a single texture file and be able to simply change texture coordinates to change the appearance of the billboard. Now, I could recreate my VertexBuffer each frame, but that would be a lot of wasted processing. Is there a way to dynamically alter the texture coordinates for VertexBuffer objects each frame Edit: As a bonus question, how do I enable the alpha channels in my textures Right now it shows up white. I am using the BasicEffect. Would I have to write my own effect just for that Seems rather silly but I will if I have to. Edit 2: As bonus question 2, how can I disable antialiasing of my textures I'm ...Show All
Visual Basic playing animation
can i display the animation using mediaplayer in asp2.0 the path saved in database Use the http://forums.asp.net , The ASP.NET forums for answers to web development. This Forum is for the Visual Basic IDE. OTP ...Show All
Silverlight (formerly WPF/E) Scrollbar for canvas
Hi, I am displaying multiple textblocks in a canvas dynamically.There are many textblocks and does fit in the canvas.So, I need a scrollbar for canvas containing multiple textblocks. How to set a scrollbar for canvas in WPF/E Regards, Santosh Kalkeri though.. I didnt understand ur problem correctly.. !! u didnt specify in which part u r facing problem .. if u r drawing images in JPanel.. just add that JPanel to JScrollPane JPanel panel = new JPanel(); panel.setPreferredSize( new Dimension(600,600)); JScrollPane scroller = new JScrollPane(panel); scroller.setPreferredSize( new Dimension(200,200)); frame.add(scroller); ...Show All
SQL Server sum of a column in matrix
hi reporters! i m using matrix in my project and i want to calculate the (cell_value/sum_of_column). for data cell values we have to use sum or another aggregate function for subtotaling, so for the cell value i m wirting sum(column) / A. how to write A that points to sum of all cells on the column. x_column y_column z_column sum(y_column)/A A thanks a lot mohd sufian and Yicong Shen sufian's solution solved my problem, s um(Fields!OrderQty.Value)/Sum(Fields!OrderQty.Value, "MatrixSource") this is what i wanted, appreciate ur big help, mohd sufian ...Show All
Visual Studio Tools for Office Coloring of Excel Chart
Hello, I'm generating Excel-Charts via VSTO in VB .NET. For the Seriescollections I want to set given RGB-Values like RGB(223, 0, 48) for red. But the colors are different from the colors, when I generate Chart objects in Excel-VBA. It seems that the RGB-Colors in VSTO / VB .NET not scalable like it shoud be. It seems furhter more that there are only a few colors avialable, wenn I increase or decrease the RGB-Colors they only get brighter or darker in intervalls. e.g. mySeries.Interior.Color = RGB(223, 0, 48) shows the same color as mySeries.Interior.Color = RGB(204, 0, 35) My Screen-Setting are settet to 32-bit true color. Do you have any ideas how to sol ...Show All
.NET Development Yahoo IM
i want to send my an IM to yahoo messenger friends from a web page. i want to write my Yahoo IM ID and a mesage send to all of my friends like a PM. does anyone have an idea ...Show All
Visual Studio Team System Controller ,agents
Hi all this forum has really helped me a lot in learning this fantastic tool VSTS which has a lot more to explore... well till now i was doing webtesting and load testing on my computer which acted as the controller,after the load test i use to get a red cross on the parameters like Memory,Processor under my computer Name.so that tells the performance of the run module on my machine...Right now my question is is this result that comes with my local machine actually helpfull i mean to say should i just by getting results about my computer performance tell the developers to improve on the parameters having red cross after that load test run. or should the server act as my controller ,also i would like to mention that we have a ...Show All
SQL Server Error when attempting to backup to a second disk file
In SQL Server 2005, via the GUI, I wish to backup a database to an additional disk file (there is already an existing backup disk file for this database), so that I can have more than one backup. I've added the new disk file name, highlighted it, and clicked OK. I get an immediate error (see below). Note, the 2nd error message is specifying the existing backup disk file, not the new one I'm attempting to create. "Backup failed for Server 'WCS-DEV-TPA'. (Microsoft.SqlServer.Smo)" "System.Data.SqlClient.SqlError: The volume on device 'D:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\WCS_ADV_Longmont.bak' is not part of a multiple family media set. BACKUP WITH FORMAT can be used to form a new media set. (Microsoft.S ...Show All
SQL Server How do i display a checkbox on a report?
Hi, I've been trying to display a checkbox on a report using unicode text eg. (U+2616) (Arial Unicode MS). I get the error: BC30037: Character is not valid. I have read somewhere about using html formatting to display it, how could this be done Is there any thing else i could do Thanks, Sam. I've managed to fix the error, simple mistake. Why is it there are very few controls in reporting services compared with access Is it possible to create custom controls for reports Thanks. ...Show All
