File 'Form1.resx' already exists in the project

Dear Everyone, 
Could you help me to solve the File 'Form1.resx' already exists in the project. when I put my form under a sub folder?
I tried to copy the 'Form1.resx' from project base folder to the sub folder, the Visual studio 2010 C++ complied but the software hang at: 
this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
I am using Visual studio C++ 2010.
Here is an explanation from someone with the same issue:
"if you create a new Windows Form in a C++/CLI application and choose to save the .h and .cpp files in a location other than the project folder - for example a sub folder below the sub folder - the form gets created ok, but when you try to change
anything on it you get an error message saying:
"Could not find the file: <path_to_project_folder>\<subfolder>\<form_name>.resx"
If you try to save the changes you get another error message saying:
"File <path_to_project_folder>\<form_name>.resx' already exists in the project."
followed by another error message:
"Error HRESULT E_FAIL has been returned from a call to a COM component."
Regardless of where you save the .h file, Visual studio creates the .resx file in the project folder and then looks for it in the same folder as the .h file, and can't find it!"

Hi Shu Hu,
I followed you suggestion and the issue was still there. I got the software crashed at:
this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
Here are my steps:
1. Create a subdirectory
2. Add new form under new sub-directory
3. Change form icon from "Properties" tab
4. ignore error
5. copy the *.resx from the root of the project to sub-directory
6. close and reopen the project
7. remove *.resx from project Solution
8. Add *.resx under sub-directory to Header Files
9. Add some code to call the form.
10. Build & run
I saw this issue reported at least since VS C++ 2005 and it seemed there is no fix.
I tried these steps to reproduce this issue. But my project works well on my side. According to your application hang at : "this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));"
I guess you may forget one step, could you try open the .resx file and click add resource -> add existing file. I guess your icon file didn't embed in resx file.
How to report this issue to Microsoft development team so they can fix it?
I cannot reproduce this issue. If you have a sample to reproduce this issue, you could submit this issue to
microsoft connect. I am also glad to test your sample on my side, and you could share it on a public Onedrive folder with me.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • ITunes Consolidation: Will it create duplicates of media files if they already exist in the new itunes destination folder but arent being referenced by the itunes library?

    I have a macbook pro from fall 2010. I have been using my external HD as my primary itunes folder for the past 7 yrs ( i.e it is organized by itunes default categorization, etc). However, there is some overlap between my external HD itunes folder and my comps original itunes folder (probably 20-30% of my current library's media files were already duplicated there from when i first bought the HD and transferred files to the external, however they are mostly referenced from the external now). Also there are files in the comp's itunes folder that are not on my external (probably due to organizational mishaps and podcast downloads when not connected to the external, etc). I do not know how many files this is the case for.
    Recently, i decided that i wanted to consolidate all of my itunes music into one concise folder on my macbook's HD to avoid these issues going forward.  I also just bought a new external which i will use to back up my comp's itunes folder once i consolidate everything to the comp. But i plan on using the itunes folder on the comp going forward or at least using the consolidate fcn to avoid these issues.
    Here is my dilemma. Prior to learning of the consolidate feature today, I changed the default itunes folder in settings to the original itunes folder on the macbook and then manually dragged all of the media files from my external itunes folder to the macbook's itunes folder. There were a ton of duplicates or overlapping folders with similar artist names, so i opted to have them merge all folders where possible. After doing this, i realized the itunes library still references these files that i dragged and dropped from the external since that is where my default itunes folder used to be. At that point i then read and learned of the consolidate itunes feature which seems like the best way to do this. But i am afraid that if i consolidate my library to my macbook's itunes folder now, will it create duplicates of the 4000 + media files i just dragged to the macbook's itunes folder which are already in the itunes library but being referenced from the old external??
    Question: Is there a way that i can make these files i just dragged to the macbook's itunes folder become the ones referenced by the itunes library through the consolidate feature without creating duplicates of these 4000+ files? I want to avoid having  three copies of these files (two duplicates in the itunes and the originals on the external). Furthermore, is there a best way to find out which files in the macbook's itunes folder are not being included in the library after consolidating everything to the computer's HD? Then after that, what is the best way to start backing this all up to my new external, so that this overlapping issue doesnt happen again?  Im assuming i just need to make sure to consolidate first when changing itunes folders going forward. Thank you. I know that was a lot  to read but hopefully someone can help with this issue.

    In general:
    - The best way to check if files are in a library is to drag the whole media folder to the library.  If something was missed it will be added.  If it is in the library is won't be added a second time.
    - If you have a second copy of a file and iTunes does not currently list that specific file in its database then even if it is identical to one already in the database it will add it a second time.  So if you have file xyz on the internal drive and the external drive and add them to iTunes you will end up with two entries for the same thing in iTunes because you really do have to copies of the files.  While this can happen with two copies on a single drive, it will almost definitely be the case when you have a copy of a file on two drives because iTunes really sees them as two different things.
    -Unless you know how iTunes works, avoid moving files yourself.  Let the consolidate feature do all the file moving.  Manually moving files can really mess up iTunes unless you know what you are doing and have iTunes set to not try to do it itself.
    - There's no clean and easy way to delete duplicates.  The best thing is to change practice so you don't create them.   Here are  references:
    How to find and remove duplicate items in your iTunes library - http://support.apple.com/kb/HT2905
    http://dougscripts.com/itunes/itinfo/dupin.php (commercial)
    Posts by turingtest2 about different types of duplicates and techniques- https://discussions.apple.com/thread/3555601 and https://discussions.apple.com/message/16042406 (Note: The DeDuper script is for Windows)
    http://www.hardcoded.net/dupeguru_me/

  • "file already exists in the destination" during application build

    I am trying to build an executable and have gotten the following error:
    The file already exists in the destination.
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Sentech LV 82\Shared Library - Trigger SDK\StTrgApi.dll
    WHen I start the build I go to "Build Executable" then click "Build"
    The VI for the project I have open is the Startup VI and I do not list any Dynamic VIs or Support FIles.
    I am using Labview 8.2
    I installed a user library for a USB camera from Sentech wich I am using and it works fine in Labview 8.2
    When I try to do the build I get the error shown above. The file it is referencing is there along with the .lvlib file.
    I tried removing the file shown in the error message to see what would happen and I continue to get the same error even though the file is not there. I even restarted LV and still got the same error.
    I am new to the application builder (v7 ?) and have not been able to find any good tutorials. Does anyone have any ideas on this error or a good place to learn more about app builder.
    Thanks
    Keith

    I am new to the application builder (v7 ?) and have not been able to find any good tutorials. Does anyone have any ideas on this error or a good place to learn more about app builder.
    Thanks
    Keith
    Hi Keith,
    you can check this Link out for a tutorial on app builder.
    Regards,
    Denver 

  • PSE 9 and 5 will not import - says the file already exists in the catalog !

    I've already wasted 2 days looking for answers to this. When someone buys this program, at least half of the price is paying for the database in the Organizer - yet even John Ellis himself, who seems to know more than anyone about it, has gone to Lightroom. This is bad coding!!!
    Upgraded from 5 to 9. If you read my previous posts, this took 2 days too, and phone help from a tech, because it would not install in my XP computer. It did upgrade the Organizer from 5, although many of the symbols are unusable and don't work to help me identify my tags. However, now I see that neither 5 nor 9 is able to look at a file and display thumbnails that are in it.
    I move files around a lot for my business. Any half-way good database should be able to find the missing files, and also add any new images. Say I have 10 images in file A, then add 2 more to make 12. It can't see the added images! Says can't import, the file already exists in the catalog.
    I tried: updating thumbnails, recover, repair, in both 5 and 9 - nothing works. to import the images that I can SEE in these folders! I read here  that it will not import files if the same name is somewhere else. That alone is a problem.  But I think it's more than that: even if the file used to be in another folder, folder B, it won't recognize that it's in folder A now!
    Since PSE9 uses sql db, shouldn't that be better than 5 and be able to do simple tasks like this?
    Any advice or similar experiences eagerly welcomed.

    Thank you for replying, dj paiqe.
    Do you mean the first little section that says photos may not be displaying? Yes, those just reveal hidden photos and are very basic. I did them.
    I guess we disagree about databases and what they are designed to do, or maybe I didn't explain this well.
    I did not move the images outside of the catalog: I move them to various folders, all already imported WITHIN the catalog, as I send them to various editors. (these are all drawings, not photos, and I do this professionally, so it needs to work).
    Folder A and Folder B and Folder C have already been imported into the catalog. So if I move 2 images from folder B into folder A, the Organizer is simply lost, says image already exists, and everything is totally screwed up, as the image is no longer in folder B, and it can't find it in folder A!!! The problem is, unless I memorize the image name, say Image 9, I can't tell it to reconnect, as there is no longer an image in front of me! So there are 2 images, without names, now nowhere to be found. Inefficient, to say the least.
    I've never tried Lightroom or Filemaker, but I cannot believe that they would lose data like this. I think it's the Folder coding that's not working in PSE, and I wanted this to work so badly!!!!!
    I am willing to do it the PSE way, since you now have captions, keywords, etc, and it is a very powerful database, when it works. I understand that one is supposed to move images within the Organizer, obviously. But now many images are disconnected. I could start all over importing, but is there any way to do that without losing tags and categories?

  • Weird CS4 error when saving eps files on a Mac: "...specified files already exist in the target location"

    Hi There,
    All 3 workstations in our studio are experiencing weird file behavior when re-saving eps files from Illustrator.
    Basically Illustrator creates a new file in addition to the original and adds a "-01.eps" onto the file name. If you re-save your original, Illustrator brings up a dialogue box that states:
    Some of the specified files already exist in the target location. The files marked below will be replaced:
    filename.eps
    filename-01.eps
    We've been deleting the "-01.eps" files each time but it's becoming tedious. The behaviour occurs when re-saving an eps file to a server or the desktop.
    All machines are new Quad-core MacPros running:
    - Leopard 10.5.8
    - Illustrator CS4 14.0.0
    We've checked for Illustrator updates from within Illustrator but we seem to be running the latest version.
    Is anyone else experiencing this behavior?
    Any help or pointers in the right direction would be much appreciated.
    Cheers
    Ben

    Thanks for the reply.
    The error occurs when we save the document but if we choose save as, "Use Artboards" seems to be unchecked so not sure if this issue is related or not. Will re-save the document using save as then see if the issue persists.
    Why do we still use eps?
    Basically because we've found it to be much more compatible. Our entire logo library is in eps format (18 years worth) partly because it was previously the only format to use and partly because it allows account managers to send logos to clients, printers, TV stations etc and not involve the studio (saving out an eps version).
    Although "Create PDF compatible file" is a good idea, we've encountered costly issues with colours and images - especially if the recipient is using old CS software, non-Adobe software or is using some kind of hardware RIP. We now just go with what we know works.
    But I do find saving eps versions of everything to be a bit painful. In fact, I've always found Illustrator in general to be a bit painful when compared with Photoshop or AfterEffects. Illustrator seems like it's been developed by a different company some times!
    Cheers, and thanks for the help.

  • How to check if the file already exists in the client directory

    Hi all.
    I'm on devsuite 10g. I'm using webutil to download files from DB using webutil function db_to_client.
    What I need is to check if the file already exists in the client directory and if yes to display a message to ask the user if he wants to overwrite or no. How can I make this???
    Here is the code that I'm using to download the file.
    Thanks all for the collaboration.
    Fabrizio
    declare
    file_path varchar2(2000) := null;
    BEGIN
    /** I ask where saving the file on the client machine **/
    file_path:= webutil_file.file_selection_dialog
    (directory_name => null,
    file_name => :bin_docs.name,
    file_filter => '',
    title => 'Saving file',
    dialog_type => save_file, --save_file
    select_file => TRUE);
    /** I download the file from DB to client **/
    if webutil_file_transfer.DB_To_Client_With_Progress
    ( file_path ,
    'BIN_DOCS',
    'DOC' ,
    'doc_id = '||:bin_docs.doc_id,
    'Downloading file',
    ' '||:bin_docs.name) then
    msg_alert('Download del file avvenuto con successo','I',false);
    else
    msg_alert('Si è verificato il seguente errore in fase di download '||SQLERRM,'I',false);
    end if;
    end;

    How about something like the below:
    Note: I have a yes/no alert to asking if they want to over-write the existing file.
    DECLARE
    file_path VARCHAR2(2000) := null;
    over_write BOOLEAN := TRUE;
    BEGIN
    /** I ask where saving the file on the client machine **/
    file_path:= webutil_file.file_selection_dialog
    (directory_name => null,
    file_name => :bin_docs.name,
    file_filter => '',
    title => 'Saving file',
    dialog_type => save_file, --save_file
    select_file => TRUE);
    IF webutil.file_exists(file_path) THEN
    /** check a file by the same name exists in the selected directory **/
    IF show_alert('Ask_overright') != alert_button1 THEN
    /** If we say no then set over_write value to false **/
    over_write := FALSE;
    END IF;
    END IF;
    IF over_write THEN
    /** I download the file from DB to client **/
    IF webutil_file_transfer.DB_To_Client_With_Progress
    ( file_path ,
    'BIN_DOCS',
    'DOC' ,
    'doc_id = '||:bin_docs.doc_id,
    'Downloading file',
    ' '||:bin_docs.name) then
    msg_alert('Download del file avvenuto con successo','I',false);
    ELSE
    msg_alert('Si è verificato il seguente errore in fase di'
    ||' download '||SQLERRM,'I',false);
    END IF
    END IF;
    END;
    cheers
    Q

  • Does time capsule make duplicate copies of the files those are already exist in it?

    Does time capsule make duplicate copies of the files those are already exist in it?

    It's not clear just what you mean.
    If you're backing-up your Mac, via the Time Machine software, to a Time Capsule or external HD, then yes, by default, Time Machine will copy everything the first time.  Subsequent backups will copy only what's new or changed.
    If you mean, can you back up other data on a Time Capsule, no, not with Time Machine.  It can only back up TO a network location, not FROM one.

  • How to check if the file already exists in the application server directory

    Hi all. I'm on devsuite 10g.
    I transfer file from local machine to application server using webutil function webutil_file_transfer.client_to_as and I want to check if the file I'm transfering already exists on the server directory.
    How can I make this?
    Thanks all,
    Fabrizio

    use the text_io package and open the file in read-mode.
    like this
    declare
    xFileType text_io.file_type;
    begin
    xFileType := text_io.fopen('c:\temp\test.txt','R'); --file on the middle tier
    -- file exists;
    text_io.fclose(xFileType);
    exception
    when others then
    --file doesn't exist
    end;
    regards
    Christian

  • Error MSB4057: The target "PlatformPrepareForBuild" does not exist in the project._

    Hi to all,
    I tried to compile my .sln with VS2010 but I had this error.
    error MSB4057: The target "PlatformPrepareForBuild" does not exist in the project.
    It occurs only compiling with win32 configuration but not with x64 one.
    Ideas?
    Thank you in advanced

    In which version of Visual Studio did you create this solution? And What type of the project in this solution? And could you please post the proj file here?
    If this solution is created in VS2012 or VS2013, please make sure the original solution is not corrupt, it can be opened and built successfully in the corresponding Visual Studio. For probable compatibility issues, you could check the documents here:
    Visual Studio 2012 Compatibility
    Visual Studio 2013 Compatibility
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Reoprts server itdrep already exists in the network

    Hi
    I have two AIX machines with different hostnames and have application server 10gR2 standalone installed on both the machines.I created a new report server with the name "ITDREP" on both the machines(same name on both the machines).
    Now when i try starting the report server on machine1 it starts but after this if i try to start the reports server on machine2 it fails with the error "Reoprts server itdrep already exists in the network".
    If I want to have a reoprt server with the same name on two machines what do i need to do??
    Regards
    Ankit

    Hi
    Thanks for the suggestion.
    Can u please explan it briefly like how i need to do changes in the file rwnetwork.conf.It means the port that i should use.
    My rwnetwork.conf file looks like this:
    Machine1:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE discoveryService SYSTEM "file:/oracle10gAS/product/OAS/reports/dtd/rwnetworkconf.dtd">
    <discoveryService>
    <multicast channel="228.5.6.7" port="14021" timeout="1000" retry="3"/>
    <!--namingService name="Cos" host="%NAMING_HOST%" port="%NAMING_PORT%"/-->
    </discoveryService>
    Machine2:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE discoveryService SYSTEM "file:/oracle10gAS/product/OAS/reports/dtd/rwnetworkconf.dtd">
    <discoveryService>
    <multicast channel="228.5.6.7" port="14021" timeout="1000" retry="3"/>
    <!--namingService name="Cos" host="%NAMING_HOST%" port="%NAMING_PORT%"/-->
    </discoveryService>
    Thanks & Regards
    Ankit

  • A key/value pair with this key already exists in the store

    Hi all,
    In the installation of PI components on the AS ABAP+ AS JAVA with finalization of the Java Addin the iam facing this problem :
    In short it mentioning that the " A key/value pair with this key already exists in the store.", Please see below for more information....:
    CJSlibModule::writeWarning_impl()
    Execution of the command "/opt/java1.4/bin/java -classpath
    /oracle/stage/PIDtemp/sapinst_instdir/NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/CI/install/sharedli
    b/launcher.jar -Xmx256m -d64 com.sap.engine.offline.OfflineToolStart
    com.sap.security.core.server.secstorefs.SecStoreFS
    /usr/sap/PID/SYS/global/security/lib/tools/iaik_jce.jar:/usr/sap/PID/SYS/global/security/lib
    /tools/iaik_jsse.jar:/usr/sap/PID/SYS/global/security/lib/tools/iaik_smime.jar:/usr/sap/PID/
    SYS/global/security/lib/tools/iaik_ssl.jar:/usr/sap/PID/SYS/global/security/lib/tools/w3c_ht
    tp.jar:/oracle/stage/PIDtemp/sapinst_instdir/NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/CI/install/l
    ib:/oracle/stage/PIDtemp/sapinst_instdir/NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/CI/install/share
    dlib:/oracle/client/10x_64/instantclient/ojdbc14.jar insert -s PID -f
    /usr/sap/PID/SYS/global/security/data/SecStore.properties -k
    /usr/sap/PID/SYS/global/security/data/SecStore.key admin/host/PID tern" finished with return
    code 2. Output:
    SAP Secure Store in the File System - Copyright (c) 2003 SAP AG
    A key/value pair with this key already exists in the store.
    ERROR      2007-02-15 18:35:29
               CJSlibModule::writeError_impl()
    CJS-30051  Cannot insert a key value pair into the secure store fails; see output of log
    file SecureStoreInsert.log:
    SAP Secure Store in the File System - Copyright (c) 2003 SAP AG
    A key/value pair with this key already exists in the store..
    ERROR      2007-02-15 18:35:29 [iaxxgenimp.cpp:731]
               showDialog()
    FCO-00011  The step insertAdminDataInSecStore with step key
    |NW_Addin_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|8|0|NW_CI_Instance_Configure
    _Java|ind|ind|ind|ind|4|0|insertAdminDataInSecStore was executed with status ERROR

    Hi Kamalakar
    I think this problem happens due to wrong content of SDMKIT.JAR - incorrect crypto SDA is deployed.I dont know the installation procedure you followed because normally this error wont come.
    I would rather suggest a work around seeing your problem
    <b>Edit the keydb.xml exchanging [ERROR] with [OK]</b>
    Follow the above step and restart your installation.
    Do not forget to reward points:

  • REP-56040: Server already exists in the network

    Hi,
    I use report server on a solaris 8.
    When I stop/start it I get the error message:
    REP-56040: Server already exists in the network
    even when I properly shutdown it. I tried stopping the application server, killing all the process, the only solution I found was to reboot the server.
    Do you know if their is a kind of lock file to erase?
    Thanks,
    Pierre-Yves
    [email protected]

    Hi FormsEleven
    Thanks for your reply
    When run the following found only one server
    C:\DevSuiteHome_1\BIN>rwdiag.bat -findall
    Broadcast mechanism used to locate servers
    Channel address = 228.5.6.7
    Channel port    = 14021
    (1) Name = repserver : Type = server : Host = Shabar-PC
    C:\DevSuiteHome_1\BIN>After done the said change I get the following error when starting the report server with the following command
    rwserver server=repserver startError
    REP-56114: Bind to naming server failed
    :org.omg.CORBA.COM_FAILURE: vmcid: SUN minor code: 201
    completed: No Cheers
    Shabar
    Edited by: shabar on Apr 9, 2010 5:23 AM

  • This entry already exists in the following tables (ODBC -2035)

    Dear All,
              I'm trying to add the AR Invoice from the excel file.  I got error "This entry already exists in the following tables (ODBC -2035)". I have of course checked that the record does not already exist. I try again to add the AR Invoice, at this time, i can add successfully. Some times this works fine. I'm using the SAP 2007B PL13.
              Please help me to solve. Give me the suggeston.
    Thanks and regards,
    Lei Nandar Myint

    Dear,
           I try to add the AR Invoice using DI API.
    Thanks and regards,
    Lei Nandar Myint

  • "This entry already exists in the following table"

    Hello Friends
    I use SAP 2005 B PL05.In my UDO screens when i try to update an existing record in matrix, i get the error message
    This entry already exists in the following tables: "Tablename"
    But i'm not restricting anything  through code in the Update mode.What could be the reason for this?
    Thanks
    Ram

    Raghu,
    Have a look at this thread. might help you.
    restore numbering files
    BTW, is your linenum column in matrix bound to Linenum in the table?
    regards,
    Binita

  • Problem on "This entry already exists in the following table (OCFT)"?

    I add  an Journal Entry with DI API in an addon solution, and insert the cash flow table OCFT with the sql automatically if the Journal Entry need the cash flow information. But when I add a new Journal Entry manually, the system show an error mesage "This entry already exists in the following table (OCFT)". 
    I think it should be the serial number conflict.However, the serial number relate the OCFT can not be found in the table ONNM?
    Could you help to resolve the problem?

    Unfortunately in Business one it is not always just the obvious tables are affected, there are history tables and numbering to consider - my concern is this line
    insert the cash flow table OCFT with the sql automatically if the Journal Entry need the cash flow information.
    Looks like you might have already done some inserts and this has messed up your numbering. Try running the restore numbering - Help -> Support Desk -> Restore -> Restore Numbering File.
    Manual database updates on system tables are not supported as they lead to database corruption!

Maybe you are looking for

  • File in target directory?

    Hi Friends, The audit log says that the message is delivered but i cannot find the file in target directory.Does this indicate that the file is picked by the receiver system,if yes then once the file is picked the file is deleted from the target dire

  • Profit & loss account & Balance sheet

    Hi Gurus, Please Provide me Proforma of Profit & loss a/c & Balance sheet in income tax act 1956. Regards Kiran

  • Find and its options; maxdepth and mindepth

    Hey. When I consult the man page of find regarding maxdepth and mindepth i get this : -maxdepth levels        Descend at most levels (a non-negative integer) levels of directories below the command line arguments.  -maxdepth 0         means only appl

  • Connecting Guitar to Live Dr

    Hello, I want to connect my electric guitar to my computer using my Creative Li've Dri've. I have a Creative Sound Blaster Li've! sound card. Although I can hear my guitar the sound is very faint, i.e. low volume. Do I need to use a pre-amp or someth

  • I changed my AppleId online now how do I change the AppleId in my iPhone?

    I went online and changed the email address for my AppleID to update it to my new address. Now I am trying to figure out how to change the AppleID in my iPhone so that it uses this new ID with the new email address. I can't find a way to do that. I t