• 0

[C#] Need to figure out one thing....


Question

its kind of hard to explain.

Im making a resorce editor program. for now I can extract resources from any file knowing only which kind of folders the resoures are in (ex. "PNG" "UIFILE") I give the program order to extract this folder and it gets all the resources and extracts into folder. So far so good. Now when I have to replace a resource comes a problem: I know how I could replace resource in file but for these I need to know what type the resource is (ex "PNG" or "UIFILE") AND which id the resource is (686, 678). There comes the problem, even tho I know the resource ID I need to determine which type is it. I was thinking creating datatable for it: ex columns resname, id, reslocation and add rows for each resource extracted and when need to replace then read the table, but maybe there is better way of doing this.

I thought that maybe something like this would solve my problem: creating table, but im not familar with tables


ID ResName ResType ResLoc
------------------------------------------------------------
0 567 PNG C:\users....
1 587 BMP C:\users....
[/CODE]

Hope you'll guys get the point, any help really appreciated

Link to comment
https://www.neowin.net/forum/topic/1128998-c-need-to-figure-out-one-thing/
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Managed to get it work somehow but the way im using is not very polite. Since im always extracting resources anyway I extracted these with names like "IMAGE675" and afterwards if I need to update I split the string between letters and numbers and I got ID + Type.

If anyone has better suggestion, im open for it, but for now it works.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Tim Cook: "The US over time began to stop having as many vocational kinds of skills." What's the point of wasting time getting those skills if you can't get a job with them? Good Lord, maybe he and his cohort of CEO's who exported all these jobs to China should just shut the f**k up :D
    • I made a new Cinematic/Trailer for the game, this will be the intro, still a work in progress!  I also updated the Steam page with a ton of new screenshots! 👀 https://store.steampowered.com/app/3925340/Incoherence_Dark_Rooms/  
    • Closed-loop cooling and a custom 800G network protocol let the $7.3B campus run as one AI training machine. Microsoft confirmed June 23, 2026, that its Fairwater campus in Mount Pleasant, Wisconsin, is fully operational — and the engineering behind it makes the facility something fundamentally different from every data center that came before it. Where conventional cloud infrastructure racks up general-purpose servers and parcels out workloads to each one independently, Fairwater links hundreds of thousands of NVIDIA GB200 Blackwell GPUs into a single, coherent cluster using a two-story building design, 800-gigabit-per-second Ethernet fabric, and a proprietary networking protocol co-developed with OpenAI and NVIDIA. The result, according to Microsoft, is the closest thing to a purpose-built AI supercomputer that any company has ever placed in commercial operation. https://www.techtimes.com/articles/319205/20260627/microsoft-opens-fairwater-wisconsin-ai-campus-runs-one-supercomputer-via-800g-ethernet.htm  
  • Recent Achievements

    • Conversation Starter
      jessse3334 earned a badge
      Conversation Starter
    • Reacting Well
      JuvenileDelinquent earned a badge
      Reacting Well
    • One Month Later
      Excellence2025 earned a badge
      One Month Later
    • Week One Done
      Excellence2025 earned a badge
      Week One Done
    • Week One Done
      flexorcist earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      502
    2. 2
      +Edouard
      210
    3. 3
      PsYcHoKiLLa
      150
    4. 4
      Steven P.
      73
    5. 5
      macoman
      62
  • Tell a friend

    Love Neowin? Tell a friend!