 |
|
 |
So I just rebooted. Before the reboot, I was running VS 2008 just fine. After the reboot, I get the dreaded "Cannot find one or more components. Please reinstall the application."
I've not uninstalled anything that VS might shout at. I hate this. I hate VS. I hate MS.
Any clues?
EDIT - a clarification: VS tells me absolutely nothing more than the above Cannot find one or more components. Please reinstall the application.
--
Time you enjoy wasting is not wasted time - Bertrand Russel
modified on Monday, November 2, 2009 4:25 AM
|
|
|
|
 |
|
 |
Johann Gerell wrote: I get the dreaded "Cannot find one or more components. Please reinstall the application."
Johann Gerell wrote: Any clues?
Well without giving us a clue, no. What components is it complaining about?
|
|
|
|
 |
|
 |
Thanks for the reply - I wouldn'thave asked the question if VS had given me any clue whatsoever in the first place...
It tells me absolutely nothing more than "Cannot find one or more components. Please reinstall the application."
I was hoping someone had seen it recently due to some mysterious behind-the-back auto-update of some important file when Windows update kicked in some night or so.
--
Time you enjoy wasting is not wasted time - Bertrand Russel
|
|
|
|
 |
|
 |
Johann Gerell wrote: It tells me absolutely nothing more than "Cannot find one or more components. Please reinstall the application."
My apologies.
Usually when a poster says this, it means they did not read the error message, and could not be bothered to rerun the test to reproduce it. I've not had this with any of my own systems.
|
|
|
|
 |
|
 |
No problem. I've had my share of questionees not giving enough background, so I can recognise your standpoint.
--
Time you enjoy wasting is not wasted time - Bertrand Russel
|
|
|
|
 |
|
 |
Problem solved. See parallel post.
--
Time you enjoy wasting is not wasted time - Bertrand Russel
|
|
|
|
 |
|
 |
Problem Solved.
Found http://social.msdn.microsoft.com/forums/en-US/vssetup/thread/76713427-0daa-4907-a017-633ad258a5af[^] with the title "Cannot find one or more components" Error When Executing Visual Studio 2008.
I looked in my Explorer and found an empty C:\WINDOWS\WinSxS\x86_Microsoft.VC90.ATL_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_353599c2 with modification time this morning.
Smells Windows auto-update...
I copied atl90.dll from a parallell directory and then it worked. But I still hate MS.
--
Time you enjoy wasting is not wasted time - Bertrand Russel
|
|
|
|
 |
|
 |
THANK YOU! You put an end to a total of a day's worth of needlessly wasted time.
@MS VS Team: if you are listening (and even if you aren't), change the dialog to tell us which components are missing, or put the list in some kind of easy to find log file.
|
|
|
|
 |
|
 |
hi guys,
i've done some research about being able to display a database schema represented by graphical objects such as tables, join lines in a windows form but so far could not find appropriate information.
in my visual c# project, i need to accomblish to retrieve database schema information and display it using graphical components on a win-form, and (if possible) i want to be able to modify their contents on GUI side. Actually , i wonder how i can succeed to imitate "Microsoft Access Relationship Window" where users can add tables to view and make joins between different two fields by dragging and dropping lines on each other.
An example screenshot here:
http://z.about.com/w/experts/Using-MS-Access-1440/2009/02/Relationships_1.jpg[^]
Which component(s) do i need to use in Visual Studio (C# or VB)?
Thanks for your reply.
|
|
|
|
 |
|
 |
ismail.baygin wrote: how i can succeed to imitate "Microsoft Access Relationship Window"
This application took several years of development and many developers, do you have that available?
only two letters away from being an asset
|
|
|
|
 |
|
 |
i didnt mean the whole MS Access but only its visualisation solution to database schemas as in Relationship window.
I know that it is possible to draw table figures and relationship lines by using graphics methods but i believe that there must be a shortcut way to do this such as a toolbox component, or add-on... etc.
|
|
|
|
 |
|
 |
ismail.baygin wrote: i didnt mean the whole MS Access
Nor did I. I think you fail to realize the scope of the tool you want to emulate and build.
only two letters away from being an asset
|
|
|
|
 |
|
 |
Dear Mark, MS Access was just an example to be more clear about how my product will look like at the end.
I am very clear about the scope of the tool, and my steps to reach it are very definite. But, there are some programmatic barriers which i need to overcome first like graphical representations of tables and relationships. i just didnt want to tell the whole thing but only a part of it to be more specific.
If you 've ever used a CASE tool (probably you've) like PowerDesigner in which you can drag and drop entity objects to a diagram and draw lines between them. I want to build a similiar and more simple application like PD.
But i didnt know how to draw these objects in a win-form.
If you want to help me about the issue, i will be appreciated.
If you mean this kind of work also requires many years and developers , i must say "wow". but i dont think so.
Thanks.
|
|
|
|
 |
|
 |
ismail.baygin wrote: programmatic barriers which i need to overcome first like graphical representations of tables and relationships
So what have you tried so far? There are numerous examples available here, and elsewhere, that show how to draw objects on the screen like tables and lines. What is it you are having difficulty with?
ismail.baygin wrote: i just didnt want to tell the whole thing but only a part of it to be more specific.
More often than not around here the person doesn't give all the relevant information and advice given is not sufficient, or incorrect, because of that.
ismail.baygin wrote: ...imitate "Microsoft Access Relationship Window"...If you mean this kind of work also requires many years and developers , i must say "wow". but i dont think so.
It has been my experience that such statements indicate the person does not understand the scope or what is involved to achieve it. You have also not indicated what RDBMS (possibly more than one) you intend to target with this application. Another sign that the scope has not been identified or understood. Neither have you indicated the intended audience for this application. Sophisticated users expect more and tolerate less.
What you are asking to create is a database designer tool, with a graphical user interface to depict and edit or create database tables and relationships. Can it be created? Yes, however; for a robust application that will be capable of handling all the of the various scenarios that are possible for, and expected of, such a tool, it will take more than a weekend project.
only two letters away from being an asset
modified on Monday, October 26, 2009 12:34 PM
|
|
|
|
 |
|
 |
I'm not sure why Mark is making this out to be such a monumental task...it really isn't.
I don't know of any pre-existing controls to let you do this, but the display side of it should be fairly easy to implement. If you are accessing SQL Server, the SMO objects library will make it a lot easier to discover the relationships between tables and such:
http://msdn.microsoft.com/en-us/library/ms162169.aspx[^]
As for displaying AND editing, it gets a bit trickier, but the actual UI element is still doable in a relatively short period of time. Alternatively, you can just provide a facility for your users to export/import XML files that work with a designer like this:
http://ondras.zarovi.cz/sql/demo/[^]
Then you just have to provide a mechanism to synchronize the changes in SQL Server. Depending on your application and your requirements, this might be very easy (blow away existing table and recreate) or more difficult, but still far from the impossible task Mark is making it out to be.
I actaully just finished making a simplified database designer tool for end users in WPF for one of our applications, which is FAR, FAR easier than WinForms (none of that GDI gunk required) for this sort of thing. If you can use WPF, this becomes much easier (although there is a very steep learning curve with WPF). Even if the rest of your application is WinForms, you can still host a WPF control in your app.
|
|
|
|
 |
|
 |
Mike Marynowski wrote: WPF
Hello Mike,
it is wonderful to hear from you what i exactly mean and was looking for,WPF.
i will start to dig into details as soon as possible.
The sample designer you attached is exactly what i aim to build and i knew that
there must have been a very easy way to achieve this.
I am either not sure why Mark is making things look like diffucult or impossible.
Anyway, i got the answer.
Thanks a lot.
Sincerely.
|
|
|
|
 |
|
 |
Hi I am new in .net programming.
I am working with serail port lib in vb.net 2.0
I have connected a device to my com port via rs485 to rs232 convetor.
Device(RS485)<-->RS485/RS232 Convertor<-->my pc com port.
I am able to send to data in hex format to device but while getting response RXparity error event is occured .
can anybody tell me why it is occuring and how to overcome with it.
Thanks in Advance
Rajat
modified on Friday, October 23, 2009 4:01 AM
|
|
|
|
 |
|
 |
Rajat Pandey wrote: RXparity error event
getting a parity error usually means your port settings don't match the ones of the other side (number of bits per byte, presence and type of parity)
BTW: this is NOT a Visual Studio related question.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
 |
|
 |
How to i send files to a network printer without opening the files.
I need to do it programmatically without too much fuss
I don't really want to use a purchased third party component - though I'd be happy to look at free or open source ones if people know of any.
I hav tried sending it to local printer with success, but i need to send it to a network printer.
|
|
|
|
 |
|
 |
Network printers usually have an IP address or UNC name that can be references. This[^] might help
Also, you would have probably gotten more response if this were posted the .NET Framework or C# forums since it has nothing at all to do with Visual Studio. But don't move it now, or repost it, it's too late.
only two letters away from being an asset
|
|
|
|
 |
|
 |
Hi,
I am trying to achiev a per pixel AlphaBlend on two 32 bit *.bmp images. Both the images are in ARGB format.
Here is my code.
#include ;
#include ;
#include ;
TCHAR szSourceFileName[] = TEXT("C:\\SourceImageData.bmp");
TCHAR szDestinationFileName[] = TEXT("C:\\DestinationImageData.bmp");
void DrawAlphaBlend (HWND hWnd, HDC hdcwnd)
{
HDC hdcDest; // handle of the DC we will create
HDC hdcSource; // handle of the DC we will create
BLENDFUNCTION bf; // structure for alpha blending
HBITMAP hbitmap; // bitmap handle
HBITMAP hbitmapSource; // bitmap handle
BITMAPINFO bmi; // bitmap header
BYTE *pvBits; // pointer to DIB section
ULONG ulWindowWidth, ulWindowHeight; // window width/height
ULONG ulBitmapWidth, ulBitmapHeight; // bitmap width/height
RECT rt; // used for getting window dimensions
UINT32 x,y; // stepping variables
UCHAR ubAlpha; // used for doing transparent gradient
UCHAR ubRed;
UCHAR ubGreen;
UCHAR ubBlue;
float fAlphaFactor; // used to do premultiply
BITMAPFILEHEADER *pBmpFileHeadr = NULL;
BITMAPFILEHEADER *pBmpFileHeadrSource = NULL;
BYTE *pvBitsSource;
BITMAPINFO *pbmi = NULL;
BLENDFUNCTION bfDest; // structure for alpha blending
// get window dimensions
GetClientRect(hWnd, &rt);
// calculate window width/height
ulWindowWidth = rt.right - rt.left;
ulWindowHeight = rt.bottom - rt.top;
// make sure we have at least some window size
if ((!ulWindowWidth) || (!ulWindowHeight))
return;
// create a DC for our bitmap -- the source DC for AlphaBlend
hdcDest = CreateCompatibleDC(hdcwnd);
// zero the memory for the bitmap info
ZeroMemory(&bmi, sizeof(BITMAPINFO));
// create our DIB section and select the bitmap into the dc
pBmpFileHeadr = DibLoadImage(szDestinationFileName);
if (pBmpFileHeadr)
{
pbmi = (BITMAPINFO *) (pBmpFileHeadr + 1) ;
pvBits = (BYTE *) pBmpFileHeadr + pBmpFileHeadr->bfOffBits ;
ulBitmapHeight = abs(pbmi->bmiHeader.biHeight);
ulBitmapWidth = pbmi->bmiHeader.biWidth;
hbitmap = CreateDIBSection(hdcDest, pbmi, DIB_RGB_COLORS, NULL, NULL, 0x0);
SetDIBits(hdcDest,hbitmap,0,ulBitmapHeight,pvBits,pbmi,DIB_RGB_COLORS);
}
SelectObject(hdcDest, hbitmap);
/* Now Load the Source Bitmap */
hdcSource = CreateCompatibleDC(hdcwnd);
// zero the memory for the bitmap info
ZeroMemory(&bmi, sizeof(BITMAPINFO));
pBmpFileHeadrSource = DibLoadImage(szSourceFileName);
if (pBmpFileHeadrSource)
{
memcpy(&bmi,(BITMAPINFO *) (pBmpFileHeadrSource + 1), sizeof(BITMAPINFO));
//pbmi = (BITMAPINFO *) (pBmpFileHeadrSource + 1) ;
pvBitsSource = (BYTE *) pBmpFileHeadrSource + pBmpFileHeadrSource->bfOffBits ;
ulBitmapHeight = abs(bmi.bmiHeader.biHeight);
ulBitmapWidth = bmi.bmiHeader.biWidth;
hbitmapSource = CreateDIBSection(hdcSource, &bmi, DIB_RGB_COLORS, NULL, NULL, 0x0);
SetDIBits(hdcSource,hbitmapSource,0,ulBitmapHeight,pvBitsSource,&bmi,DIB_RGB_COLORS);
}
SelectObject(hdcSource, hbitmapSource);
bf.BlendOp = AC_SRC_OVER;
bf.BlendFlags = 0;
bf.SourceConstantAlpha = 0xFF;
bf.AlphaFormat = AC_SRC_ALPHA;//--> Gives compilation error - undeclared identifier
/* Blt the Destination Image */
StretchBlt(hdcwnd,0,0,ulWindowWidth,ulWindowHeight,hdcDest,0,0,ulBitmapWidth,ulBitmapHeight,SRCCOPY);
if (!AlphaBlend(hdcwnd, ulBitmapWidth, ulBitmapHeight,
ulBitmapWidth, ulBitmapHeight,
hdcSource, 0, 0, ulBitmapWidth, ulBitmapHeight, bf))
// do cleanup
if (pBmpFileHeadr)
free(pBmpFileHeadr);
if (pBmpFileHeadrSource)
free(pBmpFileHeadrSource);
DeleteObject(hbitmap);
DeleteDC(hdcDest);
DeleteObject(hbitmapSource);
DeleteDC(hdcSource);
}
I am facing the follwing issues:
1) AC_SRC_ALPHA is undefined. Do i need to upgrade my Visual Studio or install any service pack? If yes then how?
2) If i give the value of bf.AlphaFormat as 0x01 then also I am not able to achive the alpha blend. Is there something wrong with the logic?
Any help would be highly appreciated.
Regards,
Ankit
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Hi,
I'm trying to get a Setup Project to build, and it does but with two Warnings saying:
"Unable to find dependency 'MY_WCF_SERVICE_LIBRARY' (Signature='(null)' Version='1.0.0.0' of Assembly 'My_WinForm_Assembly.exe'...
"Unable to find dependency 'MY_WCF_SERVICE_LIBRARY' (Signature='(null)' Version='1.0.0.0' of Assembly 'My_WCF_ServiceHost_Assembly.exe'...
The solution also contains some C++ projects and my three .NET assemblies:
WCF Service Library [called 'MY_WCF_SERVICE_LIBRARY' here]
WCF Service Host [called 'My_WCF_ServiceHost_Assembly.exe' here]
WinForm client application [called 'My_WinForm_Assembly.exe' here] using the WCF Service Library (referencing it) and consuming the WCF Service (which also references the WCF Library).
Since our product not only contains .NET assemblies we build specifically for 32 and 64 bits OS (including my assemblies). So in the "Setup 32" project I have added the assemblies of the release build of my 32 bits .NET assemblies and in my "Setup 64" project the assemblies built for 64 bit.
The Warning message shows up for both my 32 and 64 bit Setup project, and as you can see it's the WinForm and WCF Service host project's that says they can't find the WCF Service Library.
Does anyone know why I get these messages and how to configure my Setup to get rid of them?
Additional info:
I'm using VS2008, Windows XP SP3 (32 bit machine) and .NET 3.5
modified on Wednesday, October 21, 2009 5:02 AM
|
|
|
|
 |
|
 |
I found the solution to my problem, and I'll post it here in case someone does the same mistake as I did..
In my Setup project under File System I had choose to add Assembly of my WinForm instead of Project Output, and I repeated this mistake for all of my three .NET assemblies. By adding them to the File System as Project Output instead of Assembly made the Warnings go away.
|
|
|
|
 |